extract create_pm_header

This commit is contained in:
Zankaria
2024-09-20 02:03:42 +02:00
parent 25b2b6bc6e
commit 23f3d15a52
4 changed files with 65 additions and 15 deletions

View File

@@ -34,10 +34,6 @@ function Element($templateFile, array $options) {
if (!$twig)
load_twig();
if (function_exists('create_pm_header') && ((isset($options['mod']) && $options['mod']) || isset($options['__mod'])) && !preg_match('!^mod/!', $templateFile)) {
$options['pm'] = create_pm_header();
}
if (isset($options['body']) && $config['debug']) {
$_debug = $debug;