diff --git a/gosa-plugins/goto/addons/goto/class_gotoLogView.inc b/gosa-plugins/goto/addons/goto/class_gotoLogView.inc
index d9e2703c1a9838416b7131a2e24fff17343c577a..12937512cab55acd559ab13410dc3a005e42788a 100644 (file)
/* Query for log files
*/
$res = $this->o_queue->get_log_info_for_mac($this->mac);
- if($this->o_queue->is_error()){
+ if($this->o_queue->is_configured() && $this->o_queue->is_error()){
msg_dialog::display(_("Error"), $this->o_queue->get_error(), ERROR_DIALOG);
}
function execute()
{
+ plugin::execute();
+
$smarty = get_smarty();
$smarty->assign("logs",$this->logs);
$smarty->assign("logs_available", isset($this->logs[$this->mac]));
function get_log($mac,$date,$file)
{
$res = $this->o_queue->get_log_file($mac,$date,$file);
- if($this->o_queue->is_error()){
+ if($this->o_queue->is_configured() && $this->o_queue->is_error()){
msg_dialog::display(_("Error"), $this->o_queue->get_error(), ERROR_DIALOG);
}
$res = nl2br(htmlentities($res));
{
return (array(
"plShortName" => _("Log view"),
- "plDescription" => _("Goto log view"),
+ "plDescription" => _("GOto log view"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 30,