replace self with static
This commit is contained in:
parent
2a088fb45b
commit
575c5531b8
|
|
@ -521,7 +521,7 @@ class TemplateProcessor
|
||||||
$xmlImage = str_replace(array('{RID}', '{WIDTH}', '{HEIGHT}'), array($rid, $preparedImageAttrs['width'], $preparedImageAttrs['height']), $imgTpl);
|
$xmlImage = str_replace(array('{RID}', '{WIDTH}', '{HEIGHT}'), array($rid, $preparedImageAttrs['width'], $preparedImageAttrs['height']), $imgTpl);
|
||||||
|
|
||||||
// replace variable
|
// replace variable
|
||||||
$varNameWithArgsFixed = self::ensureMacroCompleted($varNameWithArgs);
|
$varNameWithArgsFixed = static::ensureMacroCompleted($varNameWithArgs);
|
||||||
$matches = array();
|
$matches = array();
|
||||||
if (preg_match('/(<[^<]+>)([^<]*)(' . preg_quote($varNameWithArgsFixed) . ')([^>]*)(<[^>]+>)/Uu', $partContent, $matches)) {
|
if (preg_match('/(<[^<]+>)([^<]*)(' . preg_quote($varNameWithArgsFixed) . ')([^>]*)(<[^>]+>)/Uu', $partContent, $matches)) {
|
||||||
$wholeTag = $matches[0];
|
$wholeTag = $matches[0];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue