From 04eaf0538aa5d41c6f84ee8ff93f76673623cca3 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Fri, 16 Nov 2012 11:06:56 +0200 Subject: [PATCH] System Plugin: set default page - updates --- plugins/box/system/system.admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/box/system/system.admin.php b/plugins/box/system/system.admin.php index 2e5e669..b96774c 100755 --- a/plugins/box/system/system.admin.php +++ b/plugins/box/system/system.admin.php @@ -58,7 +58,7 @@ // Get all pages $pages_array = array(); - $pages_list = $pages->select('[slug!="error404" and parent=""]'); + $pages_list = $pages->select('[slug!="error404" and parent="" and status="published" and access="public"]'); foreach ($pages_list as $page) { $pages_array[$page['slug']] = Html::toText($page['title']); }