create first webpage as 'home' if none exist.
This commit is contained in:
parent
c38e7ee3e3
commit
56219f9f61
@ -173,7 +173,6 @@ class Webpages extends \Zotlabs\Web\Controller {
|
|||||||
if($_REQUEST['pagetitle'])
|
if($_REQUEST['pagetitle'])
|
||||||
$x['pagetitle'] = $_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,
|
// 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.
|
// so just list titles and an edit link.
|
||||||
@ -197,6 +196,11 @@ class Webpages extends \Zotlabs\Web\Controller {
|
|||||||
// intval(ITEM_TYPE_WEBPAGE)
|
// intval(ITEM_TYPE_WEBPAGE)
|
||||||
// );
|
// );
|
||||||
|
|
||||||
|
if(! $r)
|
||||||
|
$x['pagetitle'] = 'home';
|
||||||
|
|
||||||
|
$editor = status_editor($a,$x);
|
||||||
|
|
||||||
$pages = null;
|
$pages = null;
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
|
Reference in New Issue
Block a user