Fix for wrong page count - #390

This commit is contained in:
Andy Miller
2016-01-14 17:52:11 -07:00
parent 2a36608b59
commit 585b83d6a7

View File

@@ -408,10 +408,7 @@ class Admin
*/ */
public function countPages() public function countPages()
{ {
$routable = $this->grav['pages']->all()->routable(); return count($this->grav['pages']->all());
$modular = $this->grav['pages']->all()->modular();
return count($routable) + count($modular);
} }
/** /**