forked from leftypol/leftypol
report queue
This commit is contained in:
parent
ad55a634bf
commit
41e1a2481b
5 changed files with 155 additions and 1 deletions
|
@ -39,7 +39,7 @@ function Element($templateFile, array $options) {
|
|||
if (!$twig)
|
||||
load_twig();
|
||||
|
||||
if (function_exists('create_pm_header') && ((isset($options['mod']) && $options['mod']) || isset($options['__mod']))) {
|
||||
if (function_exists('create_pm_header') && ((isset($options['mod']) && $options['mod']) || isset($options['__mod'])) && !preg_match('!^mod/!', $templateFile)) {
|
||||
$options['pm'] = create_pm_header();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue