aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-13 16:45:31 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-11-13 16:45:31 +0100
commit0178840c19978cf4b0378609df0bcc004c6d36ae (patch)
treec8a8bcb86661f6278e9e08439c9621638d387d1e /boot.php
parentd04c73ae0000bcd7cf854a936f25583355e78def (diff)
parent5d0646c9e1f207fa05fd923bcccd9f5844de2664 (diff)
downloadvolse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.tar.gz
volse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.tar.bz2
volse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index f9b826bb7..390560592 100755
--- a/boot.php
+++ b/boot.php
@@ -2056,6 +2056,10 @@ function construct_page(&$a) {
$a->build_pagehead();
+ if($a->page['pdl_content']) {
+ $a->page['content'] = comanche_region($a,$a->page['content']);
+ }
+
// Let's say we have a comanche declaration '[region=nav][/region][region=content]$nav $content[/region]'.
// The text 'region=' identifies a section of the layout by that name. So what we want to do here is leave
// $a->page['nav'] empty and put the default content from $a->page['nav'] and $a->page['section']
@@ -2070,6 +2074,7 @@ function construct_page(&$a) {
call_hooks('construct_page', $arr);
$a->layout = $arr['layout'];
+
foreach($a->layout as $k => $v) {
if((strpos($k, 'region_') === 0) && strlen($v)) {
if(strpos($v, '$region_') !== false) {