Fixed toggler for stable/testing channel

This commit is contained in:
Djamil Legato
2016-04-20 15:59:46 -07:00
parent 22464b000d
commit 69459ec611
6 changed files with 43 additions and 6 deletions

View File

@@ -287,9 +287,10 @@ class AdminController
// Default release state
$release = 'stable';
$reload = false;
// Get the testing release value if set
if ($this->grav['uri']->param('release') == 'testing') {
if ($this->post['release'] == 'testing') {
$release = 'testing';
}
@@ -308,7 +309,11 @@ class AdminController
// Save the configuration
$data->save();
$config->reload();
$reload = true;
}
$this->admin->json_response = ['status' => 'success', 'reload' => $reload];
return true;
}
/**