Amount of pages

This commit is contained in:
dignajar 2015-10-31 14:51:40 -03:00
parent 4950c65bac
commit 6958133db5
2 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,7 @@ define('SALT_LENGTH', 8);
define('PAGE_BREAK', '<!-- pagebreak -->'); define('PAGE_BREAK', '<!-- pagebreak -->');
// No parent character // No parent character
define('NO_PARENT_CHAR', '—'); define('NO_PARENT_CHAR', '—-');
// Post per page on Manage->Posts // Post per page on Manage->Posts
define('POSTS_PER_PAGE_ADMIN', 10); define('POSTS_PER_PAGE_ADMIN', 10);

View File

@ -320,6 +320,14 @@ class dbPages extends dbJSON
return $tmp; return $tmp;
} }
public function count()
{
$count = parent::count();
// DEBUG: Less than - 1 because the error page.
return $count - 1;
}
public function regenerateCli() public function regenerateCli()
{ {
$db = $this->db; $db = $this->db;