report queue

This commit is contained in:
Michael Save 2012-04-16 17:28:57 +10:00
parent ad55a634bf
commit 41e1a2481b
5 changed files with 155 additions and 1 deletions

View file

@ -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();
}