diff --git a/bl-kernel/abstract/dbjson.class.php b/bl-kernel/abstract/dbjson.class.php index 09251aab..8c245b55 100644 --- a/bl-kernel/abstract/dbjson.class.php +++ b/bl-kernel/abstract/dbjson.class.php @@ -47,7 +47,7 @@ class dbJSON { return true; } - // Returns the amount of rows in the database + // Returns the number of rows in the database public function count() { return count($this->db); diff --git a/bl-kernel/abstract/dblist.class.php b/bl-kernel/abstract/dblist.class.php index ee36d459..4bb870a8 100644 --- a/bl-kernel/abstract/dblist.class.php +++ b/bl-kernel/abstract/dblist.class.php @@ -34,7 +34,7 @@ class dbList extends dbJSON } // Returns the list of keys filter by pageNumber - public function getList($key, $pageNumber, $amountOfItems) + public function getList($key, $pageNumber, $numberOfItems) { if (!isset($this->db[$key])) { Log::set(__METHOD__.LOG_SEP.'Error key does not exist '.$key); @@ -45,7 +45,7 @@ class dbList extends dbJSON $list = $this->db[$key]['list']; // Returns all the items from the list - if ($amountOfItems==-1) { + if ($numberOfItems==-1) { // Invert keys to values, is necesary returns as key the key pages $list = array_flip($list); return $list; @@ -53,7 +53,7 @@ class dbList extends dbJSON // The first page number is 1, so the real is 0 $realPageNumber = $pageNumber - 1; - $chunks = array_chunk($list, $amountOfItems); + $chunks = array_chunk($list, $numberOfItems); if (isset($chunks[$realPageNumber])) { return $chunks[$realPageNumber]; } diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php index a4342a7c..3ea7755f 100644 --- a/bl-kernel/admin/controllers/content.php +++ b/bl-kernel/admin/controllers/content.php @@ -24,9 +24,9 @@ checkRole(array('admin', 'editor')); // List of published pages $onlyPublished = true; -$amountOfItems = ITEMS_PER_PAGE_ADMIN; +$numberOfItems = ITEMS_PER_PAGE_ADMIN; $pageNumber = $url->pageNumber(); -$published = $pages->getList($pageNumber, $amountOfItems, $onlyPublished); +$published = $pages->getList($pageNumber, $numberOfItems, $onlyPublished); // Check if out of range the pageNumber if (empty($published) && $url->pageNumber()>1) { diff --git a/bl-kernel/admin/themes/booty/html/media.php b/bl-kernel/admin/themes/booty/html/media.php index 5d21ebac..ed523f77 100644 --- a/bl-kernel/admin/themes/booty/html/media.php +++ b/bl-kernel/admin/themes/booty/html/media.php @@ -9,7 +9,7 @@ if (!empty($listOfFilesByPage[0])) { } } // Amount of pages for the paginator -$amountOfPages = count($listOfFilesByPage); +$numberOfPages = count($listOfFilesByPage); ?>