Fix #390 Incorrect number of pages being displayed

This commit is contained in:
Flavio Copes
2016-01-28 14:03:53 +01:00
parent 13c60ed833
commit c62fb6bdb5
3 changed files with 14 additions and 3 deletions

View File

@@ -330,6 +330,8 @@ class AdminPlugin extends Plugin
// make sure page is not frozen!
unset($this->grav['page']);
$this->admin->pagesCount();
// Replace page service with admin.
$this->grav['page'] = function () use ($self) {
$page = new Page;