aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-12 17:47:38 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-12 17:47:38 -0800
commit888bf76e4b4c2d4285c0bb28334df6e9af884e16 (patch)
tree6ec874a975ffad844dd2389979f75939771518ed /boot.php
parent22a650ade8b6c4472f9ad70337b69ee54e2c7c32 (diff)
downloadvolse-hubzilla-888bf76e4b4c2d4285c0bb28334df6e9af884e16.tar.gz
volse-hubzilla-888bf76e4b4c2d4285c0bb28334df6e9af884e16.tar.bz2
volse-hubzilla-888bf76e4b4c2d4285c0bb28334df6e9af884e16.zip
allow pdl content
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) {