diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index e006790c09..82bd4127aa 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -42,8 +42,8 @@ } //additional includes - require_once "resources/require.php"; require_once "resources/check_auth.php"; + load_extensions(); require_once "resources/header.php"; //add multi-lingual support diff --git a/resources/switch.php b/resources/switch.php index 859bc611f3..bc7f50c96e 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -160,6 +160,8 @@ foreach($settings_array as $name => $value) { } //get the extensions that are assigned to this user +function load_extensions() { + global $db; if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/extensions/app_config.php")) { if (strlen($_SESSION["domain_uuid"]) > 0 && strlen($_SESSION["user_uuid"]) > 0 && count($_SESSION['user']['extension']) == 0) { //get the user extension list @@ -193,6 +195,8 @@ foreach($settings_array as $name => $value) { } } } +} +load_extensions(); function build_menu() { global $v_menu_tab_show;