From: hickert Date: Fri, 12 Dec 2008 10:10:05 +0000 (+0000) Subject: Remove lock - if forced by "Locking dialog" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=92292d9dbddd3ecc0e5fb67550d38128a8e054f0;p=gosa.git Remove lock - if forced by "Locking dialog" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13278 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index a95c09367..2cb0440db 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -196,10 +196,12 @@ if (isset($_GET['plug']) && $plist->plugin_access_allowed($_GET['plug'])){ } /* Check if we need to delete a lock */ -if ($old_plugin_dir != $plugin_dir && $old_plugin_dir != ""){ +if ($old_plugin_dir != $plugin_dir && $old_plugin_dir != "" || isset($_POST['delete_lock'])){ if (is_file("$old_plugin_dir/main.inc")){ $remove_lock= true; + $display = ""; require_once ("$old_plugin_dir/main.inc"); + $display = ""; } } $remove_lock= false;