Use getName().
authorGunnar Wrobel <p@rdus.de>
Mon, 15 Mar 2010 04:52:04 +0000 (05:52 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Mon, 15 Mar 2010 10:33:21 +0000 (11:33 +0100)
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Folder.php

index 0d6112f..e7e7a70 100644 (file)
@@ -500,11 +500,7 @@ class Horde_Kolab_Storage_Folder
     {
         if (!isset($this->_subpath) || isset($name)) {
             if (!isset($name)) {
-                if (!isset($this->name) && isset($this->new_name)) {
-                    $name = $this->new_name;
-                } else {
-                    $name = $this->name;
-                }
+                $name = $this->getName();
             }
 
             if (!preg_match(";(shared\.|INBOX[/]?|user/([^/]+)[/]?)([^@]*)(@.*)?;", $name, $matches)) {