Fixed CLI self-upgrade from Grav 1.6 [#3079]

This commit is contained in:
Matias Griese 2020-11-23 09:50:30 +02:00
parent 9e6d38bc1a
commit b66287cbb9
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -331,7 +331,10 @@ class InitializeProcessor extends ProcessorBase
/** @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');