aboutsummaryrefslogtreecommitdiff
path: root/app/class/controlleradmin.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controlleradmin.php')
-rw-r--r--app/class/controlleradmin.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/app/class/controlleradmin.php b/app/class/controlleradmin.php
index cf2dbc8..03fcb22 100644
--- a/app/class/controlleradmin.php
+++ b/app/class/controlleradmin.php
@@ -35,10 +35,9 @@ class Controlleradmin extends Controller
}
public function update()
- {
- if(!isset($_POST['showeditmenu'])) {
- $_POST['showeditmenu'] = false;
- }
+ {
+ $this->globaldircheck();
+
$globalcss = file_put_contents(Model::GLOBAL_DIR . 'global.css', $_POST['globalcss']);
Config::hydrate($_POST);
@@ -50,7 +49,14 @@ class Controlleradmin extends Controller
}
-
+ public function globaldircheck()
+ {
+ if(!is_dir(Model::GLOBAL_DIR)) {
+ return mkdir(Model::GLOBAL_DIR);
+ } else {
+ return true;
+ }
+ }
}