summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-18 13:07:39 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-18 13:07:39 +0100
commit378eef7eb45bd2ec8e6a06e2ba776f55078dcbef (patch)
tree8300a2c3394136abd01d2dd9ab1748f9a56b272b /lib
parentf4b6f3cfd15aca14736e633a94ad7dac8d8e7554 (diff)
downloadnextcloud-server-378eef7eb45bd2ec8e6a06e2ba776f55078dcbef.tar.gz
nextcloud-server-378eef7eb45bd2ec8e6a06e2ba776f55078dcbef.zip
migrate share helper method to IConfig
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/helper.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/share/helper.php b/lib/private/share/helper.php
index 55b71ceeeac..9ea27dcae6c 100644
--- a/lib/private/share/helper.php
+++ b/lib/private/share/helper.php
@@ -164,14 +164,16 @@ class Helper extends \OC\Share\Constants {
*/
public static function getDefaultExpireSetting() {
+ $config = \OC::$server->getConfig();
+
$defaultExpireSettings = array('defaultExpireDateSet' => false);
// get default expire settings
- $defaultExpireDate = \OC_Appconfig::getValue('core', 'shareapi_default_expire_date', 'no');
+ $defaultExpireDate = $config->getAppValue('core', 'shareapi_default_expire_date', 'no');
if ($defaultExpireDate === 'yes') {
- $enforceExpireDate = \OC_Appconfig::getValue('core', 'shareapi_enforce_expire_date', 'no');
+ $enforceExpireDate = $config->getAppValue('core', 'shareapi_enforce_expire_date', 'no');
$defaultExpireSettings['defaultExpireDateSet'] = true;
- $defaultExpireSettings['expireAfterDays'] = (int)\OC_Appconfig::getValue('core', 'shareapi_expire_after_n_days', '7');
+ $defaultExpireSettings['expireAfterDays'] = (int)($config->getAppValue('core', 'shareapi_expire_after_n_days', '7'));
$defaultExpireSettings['enforceExpireDate'] = $enforceExpireDate === 'yes' ? true : false;
}