replace self with static

This commit is contained in:
troosan 2018-12-26 20:07:53 +01:00
parent 2a088fb45b
commit 575c5531b8
1 changed files with 1 additions and 1 deletions

View File

@ -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];