mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-06-23 16:41:28 +02:00
Update TemplateIndexer.php to PHP8
This commit is contained in:
committed by
GitHub
parent
c6969f17c2
commit
2c2a926a06
@@ -178,16 +178,15 @@ class TemplateIndexer
|
||||
'{info:link}' => $words->__get('cookie consent info'),
|
||||
'{info:href}' => $words->__get('privacy')
|
||||
);
|
||||
$contents = preg_replace_callback('/\{\s*words?\s*:\s*(.+)\s*\}/Ui',
|
||||
array(self::class, 'callback_words'), strtr($contents, $tr));
|
||||
|
||||
$contents = preg_replace_callback('/\{\s*words?\s*:\s*(.+)\s*\}/Ui', array($this, 'callback_words'), strtr($contents, $tr));
|
||||
|
||||
//replace {config} variables
|
||||
$contents = preg_replace_callback('/\{\s*config\s*:\s*(.+)\s*\}/Ui',
|
||||
array(self::class, 'callback_config'), $contents);
|
||||
$contents = preg_replace_callback('/\{\s*config\s*:\s*(.+)\s*\}/Ui', array($this, 'callback_config'), $contents);
|
||||
|
||||
//parse includes
|
||||
$this->out = preg_replace_callback('/\{\s*include\s*:\s*(.+)\s*\}/Ui',
|
||||
array(self::class, 'callback_include'), $contents);
|
||||
array($this, 'callback_include'), $contents);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user