rework the pdl_selector a bit since we've slightly changed the way layouts are stored.

This commit is contained in:
friendica
2013-09-01 18:36:14 -07:00
parent cbab62c95e
commit a1906482dc
2 changed files with 16 additions and 9 deletions
+13
View File
@@ -61,6 +61,19 @@ function page_content(&$a) {
return;
}
if($r[0]['layout_mid']) {
$l = q("select body from item where mid = '%s' and uid = %d limit 1",
dbesc($r[0]['layout_mid']),
intval($u[0]['channel_id'])
);
if($l) {
require_once('include/comanche.php');
comanche_parser(get_app(),$l[0]['body']);
}
}
// Use of widgets should be determined by Comanche, but we don't have it yet, so...
if ($perms['write_pages']) {