From 4ae5eb452bf34b38cf02b1366c4eed5409a0c223 Mon Sep 17 00:00:00 2001
From: Ralf Becker <ralfbecker@outdoor-training.de>
Date: Fri, 10 May 2013 17:21:14 +0000
Subject: [PATCH] docu update

---
 preferences/inc/class.ajaxpreferences.inc.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/preferences/inc/class.ajaxpreferences.inc.php b/preferences/inc/class.ajaxpreferences.inc.php
index 0d59d99977..79f45e4d98 100644
--- a/preferences/inc/class.ajaxpreferences.inc.php
+++ b/preferences/inc/class.ajaxpreferences.inc.php
@@ -1,6 +1,6 @@
 <?php
 /**
- * ajaxpreferences
+ * EGroupware - set presonal preferences via ajax
  *
  * @package preferences
  * @copyright Lingewoud B.V.
@@ -18,19 +18,19 @@ class ajaxpreferences
 	/**
 	 * storeEGWPref
 	 *
-	 * @param mixed $repository egroupware preferences repository
-	 * @param mixed $key key to preference
+	 * @param mixed $appname appname
+	 * @param mixed $key name of preference
 	 * @param mixed $value new value
 	 * @access public
 	 * @return mixed returns null when no erro, else return error message.
 	 */
-	function storeEGWPref($repository,$key,$value)
+	function storeEGWPref($appname,$key,$value)
 	{
 		$response = new xajaxResponse();
 		$GLOBALS['egw']->preferences->read_repository();
-		$GLOBALS['egw']->preferences->change($repository,$key,$value);
+		$GLOBALS['egw']->preferences->add($appname,$key,$value);
 		$GLOBALS['egw']->preferences->save_repository(True);
-		//$response->addAlert(__METHOD__."('$repository','$key','$value')");
+		//$response->addAlert(__METHOD__."('$appname','$key','$value')");
 		return $response->getXML();
 	}
 }