diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-12-12 18:06:07 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-12-12 18:06:07 +0000 |
commit | 3cc34055368114d81e722adea03a2118e78d2aac (patch) | |
tree | 67c491904a4af641c9b89238cae76e3803a2bccd /lib/ocs/privatedata.php | |
parent | 2a4b554ca67ba55c75bbff75777285e550dca84f (diff) | |
download | nextcloud-server-3cc34055368114d81e722adea03a2118e78d2aac.tar.gz nextcloud-server-3cc34055368114d81e722adea03a2118e78d2aac.zip |
API: Remove old code. Move remaining methods to OC_OCS_Result.
Diffstat (limited to 'lib/ocs/privatedata.php')
-rw-r--r-- | lib/ocs/privatedata.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ocs/privatedata.php b/lib/ocs/privatedata.php index 02ca31f2d29..09d636bd733 100644 --- a/lib/ocs/privatedata.php +++ b/lib/ocs/privatedata.php @@ -8,7 +8,7 @@ class OC_OCS_Privatedata { $app = addslashes(strip_tags($parameters['app'])); $key = addslashes(strip_tags($parameters['key'])); $result = OC_OCS::getData($user,$app,$key); - $xml= array(); + $xml = array(); foreach($result as $i=>$log) { $xml[$i]['key']=$log['key']; $xml[$i]['app']=$log['app']; @@ -24,7 +24,7 @@ class OC_OCS_Privatedata { $app = addslashes(strip_tags($parameters['app'])); $key = addslashes(strip_tags($parameters['key'])); $value = OC_OCS::readData('post', 'value', 'text'); - if(OC_OCS::setData($user,$app,$key,$value)){ + if(OC_Preferences::setValue($user,$app,$key,$value)){ return new OC_OCS_Result(null, 100); } } @@ -37,7 +37,7 @@ class OC_OCS_Privatedata { if($key=="" or $app==""){ return new OC_OCS_Result(null, 101); //key and app are NOT optional here } - if(OC_OCS::deleteData($user,$app,$key)){ + if(OC_Preferences::deleteKey($user,$app,$key)){ return new OC_OCS_Result(null, 100); } } |