summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-24 12:00:37 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-24 15:14:05 +0200
commite88b380973b54bc7b8bc86f888b1f11ae8e54076 (patch)
treeeb26a996febd377d21d756fdddd884a1a2ea451d /core/js/config.php
parenta67a2272e77485391695af84644e7a9074e50af8 (diff)
downloadnextcloud-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.php2
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