aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-04 23:04:58 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-04 23:04:58 +0200
commitd84f77bbc67d0f22820a980dd2ffd05257ad4be4 (patch)
tree6f9dbf899184c97824c93c4138055dd2fd6e7487 /mod
parent33a122aaa8013cded8ce97615169f5c07fb762af (diff)
downloadvolse-hubzilla-d84f77bbc67d0f22820a980dd2ffd05257ad4be4.tar.gz
volse-hubzilla-d84f77bbc67d0f22820a980dd2ffd05257ad4be4.tar.bz2
volse-hubzilla-d84f77bbc67d0f22820a980dd2ffd05257ad4be4.zip
use the right webpage layout for an installed webpage if it exists
Diffstat (limited to 'mod')
-rw-r--r--mod/impel.php1
-rw-r--r--mod/webpages.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/mod/impel.php b/mod/impel.php
index 67a7a21a9..0b29bcf02 100644
--- a/mod/impel.php
+++ b/mod/impel.php
@@ -116,6 +116,7 @@ function impel_init(&$a) {
$arr['title'] = $j['title'];
$arr['body'] = $j['body'];
$arr['term'] = $j['term'];
+ $arr['layout_mid'] = $j['layout_mid'];
$arr['created'] = datetime_convert('UTC','UTC', $j['created']);
$arr['edited'] = datetime_convert('UTC','UTC',$j['edited']);
$arr['owner_xchan'] = get_observer_hash();
diff --git a/mod/webpages.php b/mod/webpages.php
index 62abfb34a..362f7bacb 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -155,7 +155,8 @@ function webpages_content(&$a) {
'edited' => $rr['edited'],
'mimetype' => $rr['mimetype'],
'pagetitle' => $rr['sid'],
- 'mid' => $rr['mid']
+ 'mid' => $rr['mid'],
+ 'layout_mid' => $rr['layout_mid']
);
$pages[$rr['iid']][] = array(
'url' => $rr['iid'],