index c32eca5f0c17daddceda8a87c5c0b04ff6cf9899..92cd6ae7c7eb6db74caaf34bc6abed4fc41742f9 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
/* This one is empty currently. Fabian - please fill in the docu code */
$_SESSION['current_class_for_help'] = get_class($this);
/* This one is empty currently. Fabian - please fill in the docu code */
$_SESSION['current_class_for_help'] = get_class($this);
+
/* Reset Lock message POST/GET check array, to prevent perg_match errors*/
/* Reset Lock message POST/GET check array, to prevent perg_match errors*/
- $_SESSION['LOCK_VARS_TO_USE'] =array();
+ $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
}
/*! \brief execute plugin
}
/*! \brief execute plugin
$new = false;
}
$new = false;
}
- /* Add current base */
- if(isset($this->base) && isset($this->config->idepartments[$this->base])){
- $deps[$this->base] = $this->config->idepartments[$this->base];
- }else{
- echo "No default base found. ".$this->base."<br> ";
- }
-
$cat_bases = $ui->get_module_departments(preg_replace("/\/.*$/","",$category));
foreach($this->config->idepartments as $dn => $name){
$cat_bases = $ui->get_module_departments(preg_replace("/\/.*$/","",$category));
foreach($this->config->idepartments as $dn => $name){
$deps[$dn] = $name;
}
}
$deps[$dn] = $name;
}
}
+
+ /* Add current base */
+ if(isset($this->base) && isset($this->config->idepartments[$this->base])){
+ $deps[$this->base] = $this->config->idepartments[$this->base];
+ }else{
+ echo "No default base found. ".$this->base."<br> ";
+ }
+
return($deps);
}
return($deps);
}