mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
(retrofit from trunk) Optimization/bug (!): Never use the whole object as a placeholder in ApplyParams !!
SVN:2.1.1[3933]
This commit is contained in:
@@ -5463,9 +5463,11 @@ abstract class MetaModel
|
||||
continue; // Ignore this non-scalar value
|
||||
}
|
||||
}
|
||||
|
||||
$aSearches[] = '$'.$sSearch.'$';
|
||||
$aReplacements[] = (string) $replace;
|
||||
else
|
||||
{
|
||||
$aSearches[] = '$'.$sSearch.'$';
|
||||
$aReplacements[] = (string) $replace;
|
||||
}
|
||||
}
|
||||
return str_replace($aSearches, $aReplacements, $sInput);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user