1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +02:00

$online_shortcodes now loaded correctly using e107::getScBatch(). (Could break old plugins)

This commit is contained in:
Cameron
2021-01-08 13:47:54 -08:00
parent eec9a163cb
commit 0fabc9aa9c
4 changed files with 25 additions and 28 deletions

View File

@@ -13,16 +13,16 @@
if (!defined('e107_INIT')) { exit; }
//global $pref;
global $menu_pref;
$menu_pref = e107::getConfig('menu')->getPref();
$tp = e107::getParser();
e107::includeLan(e_PLUGIN.'online/languages/'.e_LANGUAGE.'.php');
require_once(e_PLUGIN.'online/online_shortcodes.php');
// require_once(e_PLUGIN.'online/online_shortcodes.php');
$mode = empty($menu_pref['online_show_memberlist_extended']) ? 'default' : 'extended';
$online_shortcodes = new online_shortcodes;
$online_shortcodes = e107::getScBatch('online', true);
$online_shortcodes->wrapper('online_menu/'.$mode);
if(deftrue('BOOTSTRAP'))