Fix an issue with DATA_DIR in case of first run
Fix an issue with DATA_DIR in case of first run
diff --git a/src/configs/Config.php b/src/configs/Config.php
index 45689a393..8568ddc85 100755
--- a/src/configs/Config.php
+++ b/src/configs/Config.php
@@ -425,11 +425,6 @@ nsdefine('SCHEDULES_DIR', WORK_DIRECTORY . "/schedules");
* File used by media jobs when they need to store data for processing
*/
nsdefine('JOBS_DIR', WORK_DIRECTORY . "/schedules/jobs");
-/**
- * Directory used to store sqlite files (when yioop database is sqlite)
- * and certain bloom filter
- */
-nsdefine('DATA_DIR', WORK_DIRECTORY . "/data");
/**
* Directory used by the web page clissfiers classes
*/
@@ -475,6 +470,11 @@ if (file_exists(WORK_DIRECTORY . PROFILE_FILE_NAME)) {
nsdefine('LOCALE_DIR', FALLBACK_LOCALE_DIR);
}
nsdefine('LOG_DIR', WORK_DIRECTORY . "/log");
+ /**
+ * Directory used to store sqlite files (when yioop database is sqlite)
+ * and certain bloom filter
+ */
+ nsdefine('DATA_DIR', WORK_DIRECTORY . "/data");
if (nsdefined('DB_URL') && !nsdefined('DB_HOST')) {
nsdefine('DB_HOST', DB_URL); //for backward compatibility
}
@@ -525,6 +525,8 @@ if (file_exists(WORK_DIRECTORY . PROFILE_FILE_NAME)) {
nsdefine('INDEX_FILE_MEMORY_LIMIT', "250M");
/** @ignore */
nsdefine('LOG_DIR', BASE_DIR . "/log");
+ /** @ignore */
+ nsdefine('DATA_DIR', BASE_DIR . "/data");
nsdefine('NAME_SERVER', "http://localhost/");
nsdefine('USER_AGENT_SHORT', "NeedsNameBot");
nsdefine('DEFAULT_LOCALE', "en-US");
diff --git a/src/data/public_default.db b/src/data/public_default.db
index e45058440..1bedb8e6d 100644
Binary files a/src/data/public_default.db and b/src/data/public_default.db differ