Make changing default theme to work again

This commit is contained in:
Matias Griese
2014-10-10 13:46:54 +03:00
parent 717a1c38d7
commit af83f1d899

View File

@@ -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.