diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 15:54:34 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 15:54:34 +0200 |
commit | 82a61e2e1a0f392759b69f7336213ff70a7bc877 (patch) | |
tree | a78094228b8454feb9212c2b7c3f54f5427fc03c /apps/user_ldap | |
parent | ff66600bc060dd2713b88b4af88e5a0a291710e0 (diff) | |
download | nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.tar.gz nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.zip |
port oc_preferences
Diffstat (limited to 'apps/user_ldap')
-rwxr-xr-x | apps/user_ldap/user_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 40cf1db67ce..1a37630aad4 100755 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -87,7 +87,7 @@ class OC_USER_LDAP extends OC_User_Backend { $quota = false; } $quota = $quota != -1 ? $quota : $this->ldap_quota_def; - OC_Preferences::setValue($uid, 'files', 'quota', OCP\Util::computerFileSize($quota)); + OCP\Config::setUserValue($uid, 'files', 'quota', OCP\Util::computerFileSize($quota)); } private function setEmail( $uid ) { @@ -95,7 +95,7 @@ class OC_USER_LDAP extends OC_User_Backend { return false; $email = $this->ldap_dc[$this->ldap_email_attr][0]; - OC_Preferences::setValue($uid, 'settings', 'email', $email); + OCP\Config::setUserValue($uid, 'settings', 'email', $email); } //Connect to LDAP and store the resource |