aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index a90d042a5..196ab0304 100755
--- a/boot.php
+++ b/boot.php
@@ -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;
+
}
}
}