Code

Added upload message
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 17:14:06 +0000 (17:14 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 17:14:06 +0000 (17:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9721 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/utils/class_msgPool.inc

index 368ea13e3a3306e71a59afa3f221a1e217f27cff..9b95b96f8ebe295fbd5917d4f7bcaebe2ccf0e80 100644 (file)
@@ -49,7 +49,6 @@ class msgPool
       return (_("You have no permission to delete the object:")."<br><br><i>$name</i>");
     }
 
-    msgPool::buildList($name);
     if (count($name) == 1){
       return (_("You have no permission to delete the object:")."<br>".msgPool::buildList($name));
     }
@@ -420,6 +419,15 @@ class msgPool
   }
 
 
+  function incorrectUpload($reason= "")
+  {
+       if ($reason == ""){
+               return _("Upload failed!");
+       }
+
+       return sprintf(_("Upload failed: %s"), "<br><br><i>$reason</i>");
+  }
+
 }
 
 ?>