Code

Remove tabs
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Dec 2009 12:08:04 +0000 (12:08 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Dec 2009 12:08:04 +0000 (12:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14978 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rsyslog/addons/rsyslog/main.inc

index 5e95b475154a211a699455a6e75ea48458ff5eed..c97b8313ffd2630122be58806512d89018f2a557 100644 (file)
@@ -22,7 +22,7 @@
 /* Remove locks created by this plugin
 */
 if ($remove_lock){
-  if(session::is_set('rsyslogTabs')){
+  if(session::is_set('rsyslogObject')){
        // Nothing to unlock here
   }
 }
@@ -30,25 +30,25 @@ if ($remove_lock){
 /* Remove this plugin from session
 */
 if ( $cleanup ){
-  session::un_set('rsyslogTabs');
+  session::un_set('rsyslogObject');
 }else{
 
 
        /* Create logview object on demand */
-       if (!session::is_set('rsyslogTabs')){
-               session::set('rsyslogTabs',new rsyslogTabs($config, $config->data['TABS']['RSYSLOGTABS'],""));
+       if (!session::is_set('rsyslogObject')){
+               session::set('rsyslogObject',new rsyslog($config));
        }
-       $rsyslogTabs = session::get('rsyslogTabs');
+       $rsyslogObject = session::get('rsyslogObject');
 
        /* Execute formular */
-#      $display= $rsyslogTabs->save_object();
-       $display= $rsyslogTabs->execute ();
+       $display= $rsyslogObject->save_object();
+       $display= $rsyslogObject->execute ();
        $display.= "<input type=\"hidden\" name=\"ignore\">\n";
 
        /* Page header*/
        $display= print_header(get_template_path('plugins/rsyslog/images/plugin.png'), _("System log view")).$display;
 
        /* Store changes  in session */
-       session::set('rsyslogTabs',$rsyslogTabs);
+       session::set('rsyslogObject',$rsyslogObject);
 }
 ?>