From 3144e63d99a9ddbb0d9c4d568a12747c83fce158 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 17 Jul 2016 23:04:16 +0000 Subject: [PATCH] Added a check if templates_c dir is writable. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 4fdd3c26..be849fff 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.25.3501 | Copyright © Anuko | +  Anuko Time Tracker 1.9.25.3502 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index b35d3524..34f3a8b5 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -45,6 +45,13 @@ function setChange($sql) { if (!$request->isPost()) { echo('

Environment check

'); + // Check if WEB-INF/templates_c dir is writable. + if (is_writable(APP_DIR.'/WEB-INF/templates_c/')) { + echo('WEB-INF/templates_c/ directory is writable.
'); + } else { + echo('Error: WEB-INF/templates_c/ directory is not writable.
'); + } + // Require the configuration file with application settings. if (file_exists(APP_DIR."/WEB-INF/config.php")) { echo('WEB-INF/config.php file exists.
'); -- 2.39.5