Code

Followup commit for #774
[gosa.git] / trunk / gosa-plugins / fai / admin / fai / class_askClassName.inc
index 197f9726db684fc9b1c0c11ee2cd6db636500738..7cac6536d9e0fb4ee7fe594fac025cea642661ae 100644 (file)
@@ -142,8 +142,8 @@ class askClassName extends plugin
       $message[] = msgPool::invalid(_("Name"),preg_replace("/ /","_",$this->ClassName),"/[^_]/");
     }
 
-    if($this->objectClass == "FAIscript" && preg_match("/^-/", $this->ClassName)) {
-      $message[] = sprintf(_("The specified classname '%s' is invalid. Scripts must not start with a dash."), $this->ClassName);
+    if(preg_match("/^-/", $this->ClassName)) {
+      $message[] = sprintf(_("The specified classname '%s' is invalid. Classnames must not start with a dash."), $this->ClassName);
 
     }