summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-16 17:28:57 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-16 17:28:57 +1000
commit41e1a2481b4d2b3217b667063d9bf5115dfec9ab (patch)
treee59fed3ed728f9eaf22dd22770ab24fb70104ee3 /inc/template.php
parentad55a634bf3f9301489f5371942c73940361a24c (diff)
report queue
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 8d679d25..5355e18c 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -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();
}