matrix/network page under Comanche cont.
This commit is contained in:
2
boot.php
2
boot.php
@@ -1872,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);
|
||||
@@ -1887,6 +1888,7 @@ function construct_page(&$a) {
|
||||
}
|
||||
|
||||
$a->page[substr($k,7)] = $v;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user