diff --git a/bl-kernel/abstract/dblist.class.php b/bl-kernel/abstract/dblist.class.php index a1b2ae1f..26e9f3d5 100644 --- a/bl-kernel/abstract/dblist.class.php +++ b/bl-kernel/abstract/dblist.class.php @@ -24,6 +24,7 @@ class dbList extends dbJSON parent::__construct($file); } + // Returns an array with a list of key of pages, FALSE if out of range public function getList($key, $pageNumber, $amountOfItems) { if (empty($key)) { @@ -39,7 +40,7 @@ class dbList extends dbJSON if ($amountOfItems==-1) { // Invert keys to values, is necesary returns as key the key pages - $list = array_flip($list); + //$list = array_flip($list); return $list; } @@ -56,7 +57,7 @@ class dbList extends dbJSON return false; } - $list = array_flip($list); + //$list = array_flip($list); return array_slice($list, $init, $amountOfItems, true); } diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php index 56237b91..425199bb 100644 --- a/bl-kernel/admin/controllers/content.php +++ b/bl-kernel/admin/controllers/content.php @@ -31,12 +31,9 @@ if (empty($published) && $Url->pageNumber()>1) { Redirect::page('content'); } -// List of drafts pages -$drafts = $dbPages->getDraftDB(); - -$scheduled = $dbPages->getScheduledDB(); - -$static = $dbPages->getStaticDB(); +$drafts = $dbPages->getDraftDB(true); +$scheduled = $dbPages->getScheduledDB(true); +$static = $dbPages->getStaticDB(true); // Title of the page $layout['title'] .= ' - '.$Language->g('Manage content'); \ No newline at end of file diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index f5bf8f23..2249bf98 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -46,7 +46,7 @@ function table($status, $icon='arrow-circle-o-down') { '; } - foreach($list as $pageKey=>$fields) { + foreach($list as $pageKey) { $page = buildPage($pageKey); if ($page) { echo ''; diff --git a/bl-kernel/admin/views/dashboard.php b/bl-kernel/admin/views/dashboard.php index ec53cc4c..bc4e2ba6 100644 --- a/bl-kernel/admin/views/dashboard.php +++ b/bl-kernel/admin/views/dashboard.php @@ -114,11 +114,11 @@ p('Published') ?> - getPublishedDB()) ?> + getPublishedDB(false)) ?> p('Static') ?> - getStaticDB()) ?> + getStaticDB(false)) ?> p('Users') ?> count() ?> @@ -135,12 +135,11 @@

p('Scheduled content') ?>