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 /lib/private/template.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 'lib/private/template.php')
-rw-r--r-- | lib/private/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/template.php b/lib/private/template.php index e7acc778de3..920be71abbf 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -233,7 +233,7 @@ class OC_Template extends \OC\Template\Base { $content->assign('file', $exception->getFile()); $content->assign('line', $exception->getLine()); $content->assign('trace', $exception->getTraceAsString()); - $content->assign('debugMode', defined('DEBUG') && DEBUG === true); + $content->assign('debugMode', \OC::$server->getSystemConfig()->getValue('debug', false)); $content->assign('remoteAddr', $request->getRemoteAddress()); $content->assign('requestID', $request->getId()); $content->printPage(); |