Code

Execute parents execute() method child classes of plugin
[gosa.git] / gosa-plugins / goto / addons / goto / class_gotoLogView.inc
index d9e2703c1a9838416b7131a2e24fff17343c577a..12937512cab55acd559ab13410dc3a005e42788a 100644 (file)
@@ -53,7 +53,7 @@ class gotoLogView extends plugin
     /* 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);
     }
 
@@ -71,6 +71,8 @@ class gotoLogView extends plugin
 
   function execute()
   {
+    plugin::execute();
+
     $smarty = get_smarty();
     $smarty->assign("logs",$this->logs);   
     $smarty->assign("logs_available", isset($this->logs[$this->mac]));
@@ -171,7 +173,7 @@ class gotoLogView extends plugin
   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));
@@ -200,7 +202,7 @@ class gotoLogView extends plugin
   {
     return (array(
           "plShortName"   => _("Log view"),
-          "plDescription" => _("Goto log view"),
+          "plDescription" => _("GOto log view"),
           "plSelfModify"  => FALSE,
           "plDepends"     => array(),
           "plPriority"    => 30,