Fix the syntax.

This commit is contained in:
markjcrane
2016-05-26 11:28:30 -06:00
parent 88bbd19d65
commit 24b7b93988
2 changed files with 4 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql));
unset($sql);
$module new modules;;
$module = new modules;;
$module->xml();
$_SESSION["message"] = $text['message-add'];
@@ -135,7 +135,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql));
unset($sql);
$module new modules;;
$module = new modules;;
$module->xml();
$_SESSION["message"] = $text['message-update'];

View File

@@ -1433,8 +1433,9 @@ if (!function_exists('save_switch_xml')) {
}
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/modules/app_config.php")) {
require_once $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."app/modules/resources/classes/modules.php";
$module new modules;
$module = new modules;
$module->xml();
//$msg = $module->msg;
}
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/vars/app_config.php")) {
save_var_xml();