aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/comanche.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/comanche.php b/include/comanche.php
index 3cf5e72a5..4af081740 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -57,10 +57,16 @@ function comanche_parser(&$a,$s) {
if($cnt)
$a->page['template'] = trim($matches[1]);
+ $cnt = preg_match("/\[template=(.*?)\](.*?)\[\/template\]/ism", $s, $matches);
+ if($cnt) {
+ $a->page['template'] = trim($matches[2]);
+ $a->page['template_style'] = trim($matches[2]) . '_' . $matches[1];
+ }
+
$cnt = preg_match("/\[template\](.*?)\[\/template\]/ism", $s, $matches);
- if($cnt)
+ if($cnt) {
$a->page['template'] = trim($matches[1]);
-
+ }
$cnt = preg_match("/\[theme=(.*?)\](.*?)\[\/theme\]/ism", $s, $matches);
if($cnt) {