diff options
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1808,7 +1808,10 @@ function get_custom_nav(&$a,$navname) { function construct_page(&$a) { require_once('include/comanche.php'); - + + if(file_exists('view/pdl/mod_' . $a->cmd . '.pdl')) + comanche_parser($a,@file_get_contents('view/pdl/mod_' . $a->cmd . '.pdl')); + $comanche = ((count($a->layout)) ? true : false); /** @@ -1869,6 +1872,7 @@ function construct_page(&$a) { if($comanche) { foreach($a->layout as $k => $v) { + logger('layout: ' . $k . ' ' . strlen($v)); if((strpos($k,'region_') === 0) && strlen($v)) { if(strpos($v,'$region_') !== false) { $v = preg_replace_callback('/\$region_([a-zA-Z0-9]+)/ism','comanche_replace_region',$v); @@ -1884,6 +1888,7 @@ function construct_page(&$a) { } $a->page[substr($k,7)] = $v; + } } } |