diff options
Diffstat (limited to 'admin/survey/classes/log/class.SurveyLog.php')
-rw-r--r-- | admin/survey/classes/log/class.SurveyLog.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/survey/classes/log/class.SurveyLog.php b/admin/survey/classes/log/class.SurveyLog.php index 3b37bb7..f962fda 100644 --- a/admin/survey/classes/log/class.SurveyLog.php +++ b/admin/survey/classes/log/class.SurveyLog.php @@ -27,7 +27,7 @@ class SurveyLog { public function __construct(){
global $site_path;
- define('LOG_FOLDER', $site_path.'logs/');
+ if(!defined('LOG_FOLDER')) define('LOG_FOLDER', $site_path.'logs/');
if (!is_dir(LOG_FOLDER) OR !is_writable(LOG_FOLDER)){
throw new Exception('Directory '.LOG_FOLDER.' must be writable');
|