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/media/ajax | |
parent | ff66600bc060dd2713b88b4af88e5a0a291710e0 (diff) | |
download | nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.tar.gz nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.zip |
port oc_preferences
Diffstat (limited to 'apps/media/ajax')
-rwxr-xr-x | apps/media/ajax/api.php | 4 | ||||
-rwxr-xr-x | apps/media/ajax/autoupdate.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index 3238ebcc679..d648e6fe975 100755 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -54,10 +54,10 @@ if($arguments['action']){ case 'delete': $path=$arguments['path']; OC_MEDIA_COLLECTION::deleteSongByPath($path); - $paths=explode(PATH_SEPARATOR,OC_Preferences::getValue(OCP\USER::getUser(),'media','paths','')); + $paths=explode(PATH_SEPARATOR,OCP\Config::getUserValue(OCP\USER::getUser(),'media','paths','')); if(array_search($path,$paths)!==false){ unset($paths[array_search($path,$paths)]); - OC_Preferences::setValue(OCP\USER::getUser(),'media','paths',implode(PATH_SEPARATOR,$paths)); + OCP\Config::setUserValue(OCP\USER::getUser(),'media','paths',implode(PATH_SEPARATOR,$paths)); } case 'get_collection': $data=array(); diff --git a/apps/media/ajax/autoupdate.php b/apps/media/ajax/autoupdate.php index 24a7e2463f0..1efbea3acef 100755 --- a/apps/media/ajax/autoupdate.php +++ b/apps/media/ajax/autoupdate.php @@ -32,7 +32,7 @@ OC_JSON::checkAppEnabled('media'); $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true'); -OC_Preferences::setValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate); +OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate); OC_JSON::success(array('data' => $autoUpdate)); ?> |