testing Comanche

This commit is contained in:
friendica
2013-09-03 01:57:11 -07:00
parent 9d262a186f
commit 0be8e4061c
4 changed files with 14 additions and 11 deletions

View File

@@ -2452,10 +2452,9 @@ function construct_page(&$a) {
foreach($a->layout as $k => $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);
$v = preg_replace_callback('/\$region_([a-zA-Z0-9]+)/ism','comanche_replace_region',$v);
}
$a->data[substr($k,0,7)] = $v;
$a->page[substr($k,7)] = $v;
}
}
}