aboutsummaryrefslogtreecommitdiffstats
path: root/include/comanche.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-03-02 10:27:08 +0100
committermarijus <mario@mariovavti.com>2014-03-02 10:27:08 +0100
commit2313736e92f8e89d46cdb002c9d6b2b82f1d6511 (patch)
tree22c4493a364ec2f90d752464a0d57d2441f9f20e /include/comanche.php
parentdb266958c43196564ff8ee30fc1e95a0f459c185 (diff)
parentbf401a5afaca8f96606b22e219bd595646ac9dab (diff)
downloadvolse-hubzilla-2313736e92f8e89d46cdb002c9d6b2b82f1d6511.tar.gz
volse-hubzilla-2313736e92f8e89d46cdb002c9d6b2b82f1d6511.tar.bz2
volse-hubzilla-2313736e92f8e89d46cdb002c9d6b2b82f1d6511.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/comanche.php')
-rw-r--r--include/comanche.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php
index 0c81b0ed3..4af081740 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -57,6 +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) {
+ $a->page['template'] = trim($matches[1]);
+ }
$cnt = preg_match("/\[theme=(.*?)\](.*?)\[\/theme\]/ism", $s, $matches);
if($cnt) {