autoregister sw
This commit is contained in:
parent
cba59e66c7
commit
8f83a27885
6 changed files with 1 additions and 38 deletions
|
|
@ -34,14 +34,6 @@ class SettingsController {
|
|||
self::redirect();
|
||||
}
|
||||
|
||||
static public function misc() {
|
||||
if (isset($_POST['misc-sw'])) {
|
||||
$sw = $_POST['misc-sw'];
|
||||
Cookies::set("misc-sw", $sw);
|
||||
}
|
||||
self::redirect();
|
||||
}
|
||||
|
||||
static private function redirect() {
|
||||
$url = Misc::url('/settings');
|
||||
header("Location: {$url}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue