adding functional list_addr function and listing parameter, that is used
[squirrelmail.git] / functions / abook_local_file.php
index d1ba38a409897803c918274264ceef07008be60d..6dca53eb0a99e07315997449e8c6461e60aac156 100644 (file)
@@ -357,8 +357,8 @@ class abook_local_file extends addressbook_backend {
         /* See if user exists already */
         $ret = $this->lookup($userdata['nickname']);
         if(!empty($ret)) {
-            return $this->set_error(sprintf(_("User '%s' already exists"),
-                   $ret['nickname']));
+            return $this->set_error(sprintf(_("User %s already exists"),
+                        '"' . $ret['nickname'] . '"'));
         }
 
         /* Here is the data to write */
@@ -450,8 +450,8 @@ class abook_local_file extends addressbook_backend {
         /* See if user exists */
         $ret = $this->lookup($alias);
         if(empty($ret)) {
-            return $this->set_error(sprintf(_("User '%s' does not exist"),
-                $alias));
+            return $this->set_error(sprintf(_("User %s does not exist"),
+                        '"' . $alias . '"'));
         }
 
         /* Lock the file to make sure we're the only process working
@@ -503,4 +503,4 @@ class abook_local_file extends addressbook_backend {
     }
 
 } /* End of class abook_local_file */
-?>
+?>
\ No newline at end of file