diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-03 20:45:02 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-03 20:45:02 +0200 |
commit | 7959605e4e389ee26705094656f636f23b9cfb8d (patch) | |
tree | f16ec80ebaf382629cdadef773c1dcb8d8e6d9e2 /settings | |
parent | 3df27a01bea923237cfa9db0c2238e0fb022c06b (diff) | |
parent | 43ebf0d1272de80007d016aacd8dcdefc318b78d (diff) | |
download | nextcloud-server-7959605e4e389ee26705094656f636f23b9cfb8d.tar.gz nextcloud-server-7959605e4e389ee26705094656f636f23b9cfb8d.zip |
Merge pull request #17378 from owncloud/kill-more-legacy-classes
Kill more legacy classes
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/enableapp.php | 2 | ||||
-rw-r--r-- | settings/ajax/setquota.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index 69b186bb9f3..55298430e28 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -31,6 +31,6 @@ try { OC_App::enable(OC_App::cleanAppId((string)$_POST['appid']), $groups); OC_JSON::success(); } catch (Exception $e) { - OC_Log::write('core', $e->getMessage(), OC_Log::ERROR); + \OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR); OC_JSON::error(array("data" => array("message" => $e->getMessage()) )); } diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index affdb310291..a9012a55345 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -54,7 +54,7 @@ if($username) { if($quota === 'default') {//'default' as default quota makes no sense $quota='none'; } - OC_Appconfig::setValue('files', 'default_quota', $quota); + \OC::$server->getAppConfig()->setValue('files', 'default_quota', $quota); } OC_JSON::success(array("data" => array( "username" => $username , 'quota' => $quota))); |