aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/home.php b/mod/home.php
index f4358da5c..7f28a89fc 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -88,6 +88,20 @@ function home_content(&$a, $update = 0, $load = false) {
if($r) {
xchan_query($r);
$r = fetch_post_tags($r,true);
+
+ 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($a,$l[0]['body']);
+ $a->pdl = $l[0]['body'];
+ }
+ }
+
$a->profile = array('profile_uid' => $u[0]['channel_id']);
$a->profile_uid = $u[0]['channel_id'];
$o .= prepare_page($r[0]);