mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-02-28 05:20:42 +01:00
Update TemplateIndexer.php to php8
This commit is contained in:
committed by
GitHub
parent
b2e1d7d821
commit
7e5a402c74
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user