diff --git a/resources/switch.php b/resources/switch.php index dfd0893c51..373e1b8cab 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -1432,7 +1432,8 @@ if (!function_exists('save_switch_xml')) { save_setting_xml(); } if (file_exists($_SERVER["PROJECT_ROOT"]."/app/modules/app_config.php")) { - $module new modules;; + require_once $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."app/modules/resources/classes/modules.php"; + $module new modules; $module->xml(); } if (file_exists($_SERVER["PROJECT_ROOT"]."/app/vars/app_config.php")) {