diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 13:00:37 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 16:14:05 +0300 |
commit | e88b380973b54bc7b8bc86f888b1f11ae8e54076 (patch) | |
tree | eb26a996febd377d21d756fdddd884a1a2ea451d /lib/private/template.php | |
parent | a67a2272e77485391695af84644e7a9074e50af8 (diff) |
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(); |