Code

Upps
[gosa.git] / plugins / admin / fai / class_faiScriptEntry.inc
index 91fa11ff71f34b47cd8f2c6f06ed1ed7baf54d4c..617de2612d6d27e72b8d0ec6a1192ccc35c730b9 100644 (file)
@@ -85,7 +85,7 @@ class faiScriptEntry extends plugin
 
      /* Create download button*/
     if($this->dn != "new"){
-      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."' target='_blank'>
+      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."'>
         <input type='button' value='"._("Download")."'>
         </a>");
     }else{
@@ -126,7 +126,8 @@ class faiScriptEntry extends plugin
   /* Check supplied data */
   function check()
   {
-    $message= array();
+    /* Call common method to give check the hook */
+    $message= plugin::check();
   
     if(empty($this->cn)){
       $message[] = _("Please enter a name.");