diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-03 14:16:29 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-03 18:00:16 +0200 |
commit | 1385b1ec487d1ce97ca520247bc32e35b23d837b (patch) | |
tree | 55fb9e10a6c0569c3f53a2b46649a17dd65281b3 /lib/private/util.php | |
parent | d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f (diff) | |
download | nextcloud-server-1385b1ec487d1ce97ca520247bc32e35b23d837b.tar.gz nextcloud-server-1385b1ec487d1ce97ca520247bc32e35b23d837b.zip |
Remove OC_Appconfig
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 8dbb2622142..51815a0ae3d 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -212,9 +212,9 @@ class OC_Util { * @return boolean */ public static function isSharingDisabledForUser() { - if (\OC_Appconfig::getValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { + if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { $user = \OCP\User::getUser(); - $groupsList = \OC_Appconfig::getValue('core', 'shareapi_exclude_groups_list', ''); + $groupsList = \OC::$server->getAppConfig()->getValue('core', 'shareapi_exclude_groups_list', ''); $excludedGroups = explode(',', $groupsList); $usersGroups = \OC_Group::getUserGroups($user); if (!empty($usersGroups)) { @@ -999,7 +999,7 @@ class OC_Util { if (isset($_REQUEST['redirect_url']) && strpos($_REQUEST['redirect_url'], '@') === false) { $location = $urlGenerator->getAbsoluteURL(urldecode($_REQUEST['redirect_url'])); } else { - $defaultPage = OC_Appconfig::getValue('core', 'defaultpage'); + $defaultPage = \OC::$server->getAppConfig()->getValue('core', 'defaultpage'); if ($defaultPage) { $location = $urlGenerator->getAbsoluteURL($defaultPage); } else { |