diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 12:00:37 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 15:14:05 +0200 |
commit | e88b380973b54bc7b8bc86f888b1f11ae8e54076 (patch) | |
tree | eb26a996febd377d21d756fdddd884a1a2ea451d /core/js/config.php | |
parent | a67a2272e77485391695af84644e7a9074e50af8 (diff) | |
download | nextcloud-server-e88b380973b54bc7b8bc86f888b1f11ae8e54076.tar.gz nextcloud-server-e88b380973b54bc7b8bc86f888b1f11ae8e54076.zip |
Remove DEBUG constant and use config value
* introduces config.php option 'debug' that defaults to false
* migrate DEBUG constant to config value
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/config.php b/core/js/config.php index 95dd7330287..21451bf91b0 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -62,7 +62,7 @@ if ($defaultExpireDateEnabled) { $outgoingServer2serverShareEnabled = $config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'yes'; $array = array( - "oc_debug" => (defined('DEBUG') && DEBUG) ? 'true' : 'false', + "oc_debug" => $config->getSystemValue('debug', false), "oc_isadmin" => OC_User::isAdminUser(OC_User::getUser()) ? 'true' : 'false', "oc_webroot" => "\"".OC::$WEBROOT."\"", "oc_appswebroots" => str_replace('\\/', '/', json_encode($apps_paths)), // Ugly unescape slashes waiting for better solution |