mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3224 - migration audit tool - allow php functions in XPath
This commit is contained in:
@@ -2581,6 +2581,10 @@ class MFDocument extends \Combodo\iTop\DesignDocument
|
||||
public function GetNodes($sXPath, $oContextNode = null, $bSafe = true)
|
||||
{
|
||||
$oXPath = new DOMXPath($this);
|
||||
// For Designer audit
|
||||
$oXPath->registerNamespace("php", "http://php.net/xpath");
|
||||
$oXPath->registerPhpFunctions();
|
||||
|
||||
if ($bSafe)
|
||||
{
|
||||
$sXPath .= "[not(@_alteration) or @_alteration!='removed']";
|
||||
|
||||
Reference in New Issue
Block a user