Update TemplateIndexer.php to php8

This commit is contained in:
Florin-Ciprian Bodin
2024-03-18 19:56:23 +02:00
committed by GitHub
parent b2e1d7d821
commit 7e5a402c74

View File

@@ -179,15 +179,15 @@ class TemplateIndexer
'{info:href}' => $words->__get('privacy')
);
$contents = preg_replace_callback('/\{\s*words?\s*:\s*(.+)\s*\}/Ui',
array('self', 'callback_words'), strtr($contents, $tr));
array(self::class, 'callback_words'), strtr($contents, $tr));
//replace {config} variables
$contents = preg_replace_callback('/\{\s*config\s*:\s*(.+)\s*\}/Ui',
array('self', 'callback_config'), $contents);
array(self::class, 'callback_config'), $contents);
//parse includes
$this->out = preg_replace_callback('/\{\s*include\s*:\s*(.+)\s*\}/Ui',
array('self', 'callback_include'), $contents);
array(self::class, 'callback_include'), $contents);
}
/**