diff options
Diffstat (limited to 'app/class/application.php')
-rw-r--r-- | app/class/application.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/class/application.php b/app/class/application.php index f4b2a84..926db20 100644 --- a/app/class/application.php +++ b/app/class/application.php @@ -19,6 +19,9 @@ class Application } else { Config::hydrate($_POST['configinit']); } + if(!is_dir(Model::RENDER_DIR)) { + mkdir(Model::RENDER_DIR); + } if(!Config::savejson()) { echo 'Cant write config file'; exit; @@ -37,7 +40,7 @@ class Application } else { if(Config::readconfig()) { - if(!Config::checkbasepath() || empty(Config::arttable())) { + if(!Config::checkbasepath() || empty(Config::arttable()) || !is_dir(Model::RENDER_DIR)) { echo '<ul>'; if(!Config::checkbasepath()) { echo '<li>Wrong path</li>'; @@ -45,6 +48,9 @@ class Application if(empty(Config::arttable())) { echo '<li>Unset table name</li>'; } + if(!is_dir(Model::RENDER_DIR)) { + echo '<li>Render path not existing</li>'; + } echo '</ul>'; $this->configform(); exit; |