From 585b83d6a76b271b4a1c7d25f92be1139975cf11 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 14 Jan 2016 17:52:11 -0700 Subject: [PATCH] Fix for wrong page count - #390 --- classes/admin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/admin.php b/classes/admin.php index 2ad43c7e..023d199a 100644 --- a/classes/admin.php +++ b/classes/admin.php @@ -408,10 +408,7 @@ class Admin */ public function countPages() { - $routable = $this->grav['pages']->all()->routable(); - $modular = $this->grav['pages']->all()->modular(); - - return count($routable) + count($modular); + return count($this->grav['pages']->all()); } /**