mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
compatibility for nextgen editor
This commit is contained in:
@@ -432,7 +432,7 @@ class AdminPlugin extends Plugin
|
||||
Pages::types();
|
||||
|
||||
// Handle tasks.
|
||||
$this->admin->task = $task = $this->grav['task'];
|
||||
$this->admin->task = $task = $this->grav['task'] ?? $this->grav['action'];
|
||||
if ($task) {
|
||||
$this->initializeController($task, $post);
|
||||
} elseif ($this->template === 'logs' && $this->route) {
|
||||
|
||||
Reference in New Issue
Block a user