diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-03 16:41:23 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-03 16:41:23 +0100 |
commit | c60c793cf2c179838710946c5db31b3f26b645b4 (patch) | |
tree | f340f2025db994b34415988c17200c473a3f2501 /lib/private/db | |
parent | 1fe7957fd0210c6a3f6ad5c810f1ba5814ff68d6 (diff) | |
download | nextcloud-server-c60c793cf2c179838710946c5db31b3f26b645b4.tar.gz nextcloud-server-c60c793cf2c179838710946c5db31b3f26b645b4.zip |
More cleanups of OC_Config usage
Diffstat (limited to 'lib/private/db')
-rw-r--r-- | lib/private/db/connection.php | 2 | ||||
-rw-r--r-- | lib/private/db/statementwrapper.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index 85b1b7cd5ea..d32d1c5fa46 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -154,7 +154,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { $statement = $this->replaceTablePrefix($statement); $statement = $this->adapter->fixupStatement($statement); - if(\OC_Config::getValue( 'log_query', false)) { + if(\OC::$server->getSystemConfig()->getValue( 'log_query', false)) { \OCP\Util::writeLog('core', 'DB prepare : '.$statement, \OCP\Util::DEBUG); } return parent::prepare($statement); diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php index 4bdaf01f071..c888fab0774 100644 --- a/lib/private/db/statementwrapper.php +++ b/lib/private/db/statementwrapper.php @@ -64,7 +64,7 @@ class OC_DB_StatementWrapper { * @return \OC_DB_StatementWrapper|int */ public function execute($input=array()) { - if(OC_Config::getValue( "log_query", false)) { + if(\OC::$server->getSystemConfig()->getValue( "log_query", false)) { $params_str = str_replace("\n", " ", var_export($input, true)); \OCP\Util::writeLog('core', 'DB execute with arguments : '.$params_str, \OCP\Util::DEBUG); } |