Code

Fixed new window for script / hook downlaod
[gosa.git] / plugins / admin / fai / class_faiHookEntry.inc
index 8a7f0c990cef0ef446a8b78c42123af350945d1f..c73d2e886a54b9820edeac61c0aa99266349e588 100644 (file)
@@ -80,7 +80,7 @@ class faiHookEntry 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{
@@ -136,7 +136,9 @@ class faiHookEntry extends plugin
   /* Check supplied data */
   function check()
   {
-    $message= array();
+    /* Call common method to give check the hook */
+    $message= plugin::check();
+
     if(empty($this->FAIscript)) {
       $message[]=_("Please enter a value for script.");
     }