Use a variable for the config file
This commit is contained in:
parent
dd33bbc1ba
commit
12af23d88f
|
@ -4,6 +4,7 @@
|
||||||
* Licensed under the GNU Affero General Public License version 3.0
|
* Licensed under the GNU Affero General Public License version 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$configFile = "config.ini";
|
||||||
$Stylesheet = "index.css";
|
$Stylesheet = "index.css";
|
||||||
$Icon = "favicon.svg";
|
$Icon = "favicon.svg";
|
||||||
$uploadDir = "uploads/";
|
$uploadDir = "uploads/";
|
||||||
|
@ -25,9 +26,7 @@ $enableTemporaryKeys = true;
|
||||||
$enableUploadRemoval = true;
|
$enableUploadRemoval = true;
|
||||||
$enableKeyUploadRemoval = true;
|
$enableKeyUploadRemoval = true;
|
||||||
|
|
||||||
define('CONFIG_FILE', 'config.ini');
|
if (!file_exists($configFile)) {
|
||||||
|
|
||||||
if (!file_exists(CONFIG_FILE)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue