Skip to content

Commit

Permalink
Fixed CLI self-upgrade from Grav 1.6 [#3079]
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Nov 23, 2020
1 parent 9e6d38b commit b66287c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Escape titles in Flex pages list [flex-objects#84](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/84)
* Fixed Purge successful message only working in Scheduler but broken in CLI and Admin [#1935](https://github.com/getgrav/grav-plugin-admin/issues/1935)
* Fixed `system://` stream is causing issues in Admin, making Media tab to disappear and possibly causing other issues [#3072](https://github.com/getgrav/grav/issues/3072)
* Fixed CLI self-upgrade from Grav 1.6 [#3079](https://github.com/getgrav/grav/issues/3079)

# v1.7.0-rc.17
## 10/07/2020
Expand Down
5 changes: 4 additions & 1 deletion system/src/Grav/Common/Processors/InitializeProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ protected function initializePages(Config $config): Pages

/** @var Pages $pages */
$pages = $grav['pages'];
$pages->register();
// Upgrading from older Grav versions won't work without checking if the method exists.
if (method_exists($pages, 'register')) {
$pages->register();
}

$this->stopTimer('_init_pages_register');

Expand Down

0 comments on commit b66287c

Please sign in to comment.