mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 08:55:36 +02:00
put a safety check around new unsetRoute() method
This commit is contained in:
@@ -879,7 +879,9 @@ class AdminController
|
||||
|
||||
// Always redirect if a page route was changed, to refresh it
|
||||
if ($obj instanceof Page\Page) {
|
||||
$obj->unsetRoute();
|
||||
if (method_exists($obj, 'unsetRoute')) {
|
||||
$obj->unsetRoute();
|
||||
}
|
||||
$this->setRedirect($this->view . $obj->route());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user