diff --git a/plugins/admin/fai/class_faiPackageEntry.inc b/plugins/admin/fai/class_faiPackageEntry.inc
index f57ec2e140bfd3bdaae945f3a8e9df153f714b7d..741a076fb1c87f8c57fa723b6158c0587de48748 100644 (file)
var $buffer = array();
var $categories = array();
- var $searchStrPKG = "Please enter your search string here";
+ var $searchStrPKG = "";
var $selected = array();
/* Array with available class names */
$this->searchStrPKG=$_SESSION['searchStrPKG'];
}
$this->selected=$selected;
+
+ $this->searchStrPKG= _("Please enter your search string here");
}
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Fill templating stuff */
$smarty = get_smarty();
$display = "";
}
}
+ $cnt = 0;
foreach($pkgs as $pkg){
- if(preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[0])){
+ if((preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[0]))||
+ (preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[3]))){
if($this->categories[$pkg[2]]){
if(in_array($pkg[0],$this->selected)){
$check = " checked ";
}else{
$check = "";
}
+ $cnt ++ ;
$chkbox = "<input type='checkbox' value='1' name='use_".base64_encode($pkg[0])."' ".$check." onclick='document.mainform.submit()'>
<input type='hidden' value='1' name='wasonpage_".base64_encode($pkg[0])."'>";
$divlist->AddEntry(array(array("string"=>$chkbox),