diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-25 14:40:50 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-25 14:40:50 -0800 |
commit | 56219f9f61a32e5733a8c6315637bfae13e38fc0 (patch) | |
tree | 28e3d56e2e30110bb8aca5f85cb6eb6e2913fc7d /Zotlabs | |
parent | c38e7ee3e3a46e56a3894b2fe40b74206cdd8762 (diff) | |
download | volse-hubzilla-56219f9f61a32e5733a8c6315637bfae13e38fc0.tar.gz volse-hubzilla-56219f9f61a32e5733a8c6315637bfae13e38fc0.tar.bz2 volse-hubzilla-56219f9f61a32e5733a8c6315637bfae13e38fc0.zip |
create first webpage as 'home' if none exist.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Webpages.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php index 0da699c73..46b94f091 100644 --- a/Zotlabs/Module/Webpages.php +++ b/Zotlabs/Module/Webpages.php @@ -173,7 +173,6 @@ class Webpages extends \Zotlabs\Web\Controller { if($_REQUEST['pagetitle']) $x['pagetitle'] = $_REQUEST['pagetitle']; - $editor = status_editor($a,$x); // Get a list of webpages. We can't display all them because endless scroll makes that unusable, // so just list titles and an edit link. @@ -197,6 +196,11 @@ class Webpages extends \Zotlabs\Web\Controller { // intval(ITEM_TYPE_WEBPAGE) // ); + if(! $r) + $x['pagetitle'] = 'home'; + + $editor = status_editor($a,$x); + $pages = null; if($r) { |