diff --git a/admin.php b/admin.php index ff89c51c..f486b9fc 100644 --- a/admin.php +++ b/admin.php @@ -435,7 +435,7 @@ class AdminPlugin extends Plugin $post = $this->grav['uri']->post(); // 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) {