Code

Some changes, no execute in save
[gosa.git] / plugins / gofon / macro / class_gofonMacro.inc
index 01024676f90dc37a9163a010cd6ac9e5751aa0c2..373a4838e9df79a1103f0f8d5ae97f5de78a5c3f 100755 (executable)
@@ -48,7 +48,7 @@ class macro extends plugin
     /* Do we represent a valid group? */
     if (!$this->is_account && $this->parent == NULL){
       $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
-        _("This 'dn' is no application.")."</b>";
+        _("This 'dn' is no phone macro.")."</b>";
       return ($display);
     }
 
@@ -127,6 +127,11 @@ class macro extends plugin
     if(($this->cn != strtolower($this->cn))||(empty($this->cn))){
       $message[] = "The attribute 'cn' must be lowercase and a least one char.";
     }
+    
+    if(count(split("\n",$this->goFonMacroContent))>100){
+      $message[] = _("Makro length must be lower than 100 lines");
+    }
+    
     return $message;
   }