Amount of pages
This commit is contained in:
parent
4950c65bac
commit
6958133db5
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue