mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Fix for wrong page count - #390
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user