summaryrefslogtreecommitdiffstats
path: root/lib/ocs/privatedata.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ocs/privatedata.php')
-rw-r--r--lib/ocs/privatedata.php6
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);
}
}