1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 18:30:20 +02:00

System Plugin: set default page - updates

This commit is contained in:
Sergey Romanenko
2012-11-16 11:06:56 +02:00
parent 7c22922fd4
commit 04eaf0538a

View File

@@ -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']);
}