Moved the extension xml function into the extension class point this code to it.

This commit is contained in:
Mark Crane 2013-03-14 02:54:06 +00:00
parent 1c00040a96
commit c899d4a62d
1 changed files with 6 additions and 1 deletions

View File

@ -329,7 +329,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
//synchronize configuration
save_extension_xml();
if (is_readable($_SESSION['switch']['extensions']['dir'])) {
require_once "app/extensions/resources/classes/extension.php";
$ext = new extension;
$ext->xml();
unset($ext);
}
//delete extension from memcache
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);