From f7ebf98692ee53fcfffdc91b87d81a24ac19df0e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Apr 2010 12:54:40 +0000 Subject: [PATCH] Removed plugin stuff from the Snapshot handler git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17910 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_SnapshotHandler.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_SnapshotHandler.inc b/gosa-core/include/class_SnapshotHandler.inc index ae04963fb..9f5b4833a 100644 --- a/gosa-core/include/class_SnapshotHandler.inc +++ b/gosa-core/include/class_SnapshotHandler.inc @@ -27,7 +27,6 @@ class SnapshotHandler { var $isEnabled= false; var $snapshotBases= array(); - /* Create handler */ function SnapshotHandler(&$config) { @@ -340,15 +339,12 @@ class SnapshotHandler { 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 */ -- 2.30.2