From ad955792a8ade5c0015aa3d68f86b1035c1acc31 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Wed, 22 Jan 2014 11:30:52 -0500 Subject: [PATCH] Fixed bug from previous commit --- interface/web/vm/openvz_vm_del.php | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/interface/web/vm/openvz_vm_del.php b/interface/web/vm/openvz_vm_del.php index 8d28844..bd9a9d4 100644 --- a/interface/web/vm/openvz_vm_del.php +++ b/interface/web/vm/openvz_vm_del.php @@ -39,8 +39,8 @@ * End Form configuration ******************************************/ -require_once('../../lib/config.inc.php'); -require_once('../../lib/app.inc.php'); +require_once '../../lib/config.inc.php'; +require_once '../../lib/app.inc.php'; //* Check permissions for module $app->auth->check_module_permissions('vm'); @@ -50,14 +50,6 @@ class page_action extends tform_actions { - function onAfterDelete() { - global $app, $conf; - - //* Release all IP addresses which are assigned to this VM - $app->db->query("UPDATE openvz_ip SET vm_id = 0 WHERE vm_id = '".$this->id."'"); - - } - } $page = new page_action; -- Gitblit v1.9.1