From af83f1d899314633bd67d68ac6d4fd5fa17226e4 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 10 Oct 2014 13:46:54 +0300 Subject: [PATCH] Make changing default theme to work again --- classes/controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/controller.php b/classes/controller.php index 96a7d846..c28c9a64 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -289,14 +289,14 @@ class AdminController * * @return bool True if the action was performed. */ - public function taskSet_theme() + public function taskActivate() { if ($this->view != 'themes') { return false; } // Make sure theme exists (throws exception) - $name = !empty($this->post['theme']) ? $this->post['theme'] : ''; + $name = $this->route; $this->grav['themes']->get($name); // Store system configuration.