Skip to content

Commit

Permalink
add required $template variable to Module::loadPage
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhgboyle committed Oct 19, 2021
1 parent a97c765 commit c7a8f2c
Show file tree
Hide file tree
Showing 54 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion 403.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require_once(ROOT_PATH . '/core/templates/frontend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$page_load = microtime(true) - $start;
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));
Expand Down
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require_once(ROOT_PATH . '/core/templates/frontend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$page_load = microtime(true) - $start;
define(
Expand Down
2 changes: 1 addition & 1 deletion core/includes/tfa_signin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
);

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$page_load = microtime(true) - $start;
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));
Expand Down
2 changes: 1 addition & 1 deletion core/integration/run_mcassoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$page_load = microtime(true) - $start;
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/api/v2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require_once(ROOT_PATH . '/core/templates/frontend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

// Ensure API is actually enabled
if (!Util::getSetting(DB::getInstance(), 'use_api')) {
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/forgot_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);
$template->onPageLoad();

require(ROOT_PATH . '/core/templates/navbar.php');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/announcements.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('announcement_success'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('api_success')) {
$smarty->assign(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
$smarty->assign('ERROR', Session::flash('adm_auth_error'));

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$page_load = microtime(true) - $start;
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/debugging_and_maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('debugging_success'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('emails_success'))
$success = Session::flash('emails_success');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/emails_errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('emails_errors_success'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/emails_mass_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
$template_file = 'core/emails_mass_message.tpl';

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('emails_success'))
$success = Session::flash('emails_success');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('error_log_success'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/general_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('general_language'))
$success = Session::flash('general_language');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('admin_groups')) {
$success = Session::flash('admin_groups');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('admin_hooks'))
$success = Session::flash('admin_hooks');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/images.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@


// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('panel_images_success'))
$success = Session::flash('panel_images_success');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $template);

$dashboard_graphs = Core_Module::getDashboardGraphs();
$graphs = array();
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/minecraft.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(isset($success))
$smarty->assign(array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/minecraft_authme.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/minecraft_query_errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(Session::exists('panel_query_errors_success'))
$success = Session::flash('panel_query_errors_success');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/minecraft_server_banners.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/minecraft_servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(Session::exists('admin_mc_servers_success'))
$success = Session::flash('admin_mc_servers_success');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(!isset($_GET['action'])){
// Get all modules
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(Session::exists('navigation_success'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(!isset($_GET['action'])){
$custom_pages = $queries->getWhere('custom_pages', array('id', '<>', 0));
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/panel_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if(Session::exists('admin_templates'))
$success = Session::flash('admin_templates');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/placeholders.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@


// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('placeholders_success')) {
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/privacy_and_terms.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/profile_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($_GET['action'])) {
if ($_GET['action'] == 'new') {
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/reactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('api_reactions'))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$timeago = new TimeAgo(TIMEZONE);

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

$errors = array();
if (!is_dir(ROOT_PATH . '/cache/sitemaps')) {
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/social_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
}

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('admin_templates'))
$success = Session::flash('admin_templates');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($success))
$smarty->assign(array(
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (Session::exists('users_session')) {
$success = Session::flash('users_session');
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/users_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
require_once(ROOT_PATH . '/core/includes/markdown/tohtml/Markdown.inc.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($_GET['action'])) {
if ($_GET['action'] == 'validate') {
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/users_ip_lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require_once(ROOT_PATH . '/core/templates/backend_init.php');

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets);
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $staffcp_nav), $widgets, $templates);

if (isset($_GET['uid'])) {
$user_id = intval($_GET['uid']);
Expand Down
Loading

0 comments on commit c7a8f2c

Please sign in to comment.