diff --git a/gosa-core/include/class_SnapshotHandler.inc b/gosa-core/include/class_SnapshotHandler.inc
index ae04963fbbe1ecf2f58dc7dfd23d172880309a81..9f5b4833ab2a7b0b69e589f2d184f054f14608ad 100644 (file)
var $isEnabled= false;
var $snapshotBases= array();
-
/* Create handler */
function SnapshotHandler(&$config)
{
function remove_snapshot($dn)
{
$ui = get_userinfo();
- $old_dn = $this->dn;
- $this->dn = $dn;
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $ldap->rmdir_recursive($this->dn);
+ $ldap->rmdir_recursive($dn);
if(!$ldap->success()){
- msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn));
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn));
}
- $this->dn = $old_dn;
}
/* returns true if snapshots are enabled, and false if it is disalbed
There will also be some errors psoted, if the configuration failed */