compatibility for nextgen editor

This commit is contained in:
Andy Miller
2020-10-05 18:46:39 -06:00
parent 8b6679855c
commit ba609fa45a
3 changed files with 57 additions and 1 deletions

View File

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