Code

Updated import
[gosa.git] / gosa-plugins / ldapmanager / addons / ldapmanager / class_export.inc
index 9e774c4bdf8e9a8163a01e98fb7a3fecf47680ee..8bed2866af2dfb17f135e6ca7c1de611d54375ad 100644 (file)
@@ -32,6 +32,9 @@ class ldifexport extends plugin
     /* Set government mode */
     $smarty= get_smarty();
 
+    $smarty->assign ("govmode", $this->config->get_cfg_value("honourIvbbAttributes"));
+    $smarty->assign("LDIFError",FALSE);
+
     $smarty->assign("type",FALSE);
     $smarty->assign("depselectivbb","");
 
@@ -69,9 +72,10 @@ class ldifexport extends plugin
     // Get the LDAP link, to generate the Export
     $ldap = $this->config->get_ldap_link();
 
-    if ($this->config->get_cfg_['GOVERNMENTMODE'] == 'true'){
-    $smarty->assign ("govmode", $this->config->get_cfg_value("governmentmode"));
-    $smarty->assign("LDIFError",FALSE);
+    if ($this->config->get_cfg_value('honourIvbbAttributes') == 'true'){
+      $smarty->assign ("govmode", $this->config->get_cfg_value("honourIvbbAttributes"));
+      $smarty->assign("LDIFError",FALSE);
+    }
 
     if(isset($dn))
     {
@@ -89,7 +93,7 @@ class ldifexport extends plugin
     if((!preg_match("/r/",$acls)) && (isset($dn))){
 
       /* Show error msg */      
-      msg_dialog::display(_("Permission error"), sprintf(_("You have no permission to export '%s'!"),@LDAP::fix($dn)), ERROR_DIALOG);
+      msg_dialog::display(_("Permission error"), sprintf(_("You have no permission to export '%s'!"),LDAP::fix($dn)), ERROR_DIALOG);
 
       /* Show main page */
       $smarty->assign("LDIFError",TRUE);