Code

Updated multi_plug class
[gosa.git] / gosa-core / include / class_ldap.inc
index 2d7a8fcee942b7cdbb69f29ba706acf9c9782ab8..310aae104a2e7463a0dcce63e07d628c642bd8b8 100644 (file)
@@ -720,8 +720,7 @@ class LDAP{
           /* Bail out, if we've nothing to do... */
           if ($ocname == ""){
             print_red(sprintf(_("Autocreation of subtree failed. No objectClass found for attribute '%s'."), $type));
-            echo $_SESSION['errors'];
-            exit;
+            display_error_page();
           }
 
           /* Assemble_entry */
@@ -769,8 +768,7 @@ class LDAP{
               break;
             default:
               print_red(sprintf(_("Autocreation of type '%s' is currently not supported. Please report to the GOsa team."), $type));
-              echo $_SESSION['errors'];
-              exit;
+              display_error_page();
           }
 
         }
@@ -1364,8 +1362,8 @@ class LDAP{
 
   function log($string)
   {
-    if (isset($_SESSION['config'])){
-      $cfg= $_SESSION['config'];
+    if (session::is_set('config')){
+      $cfg = session::get('config');
       if (isset($cfg->current['LDAPSTATS']) && preg_match('/true/i', $cfg->current['LDAPSTATS'])){
         syslog (LOG_INFO, $string);
       }