diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc
index 41ae7212cea7a1212ca1dbfcbf5f6561139e36e5..8bed2866af2dfb17f135e6ca7c1de611d54375ad 100644 (file)
/* 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","");
// Get the LDAP link, to generate the Export
$ldap = $this->config->get_ldap_link();
- if ($this->config->current['GOVERNMENTMODE'] == 'true'){
- $smarty->assign ("govmode", "true");
- } else {
- $smarty->assign ("govmode", "false");
+ if ($this->config->get_cfg_value('honourIvbbAttributes') == 'true'){
+ $smarty->assign ("govmode", $this->config->get_cfg_value("honourIvbbAttributes"));
+ $smarty->assign("LDIFError",FALSE);
}
- $smarty->assign("LDIFError",FALSE);
-
if(isset($dn))
{
if(!($ldap->dn_exists($dn) && $dn != "")){
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);