diff --git a/e107_themes/bootstrap3/theme_library.php b/e107_themes/bootstrap3/theme_library.php index 86ab63dea..1f826d61e 100644 --- a/e107_themes/bootstrap3/theme_library.php +++ b/e107_themes/bootstrap3/theme_library.php @@ -27,9 +27,10 @@ class theme_library return array(); } - /** - * Alters library information before detection and caching takes place. - */ + /** + * Alters library information before detection and caching takes place. + * @param $libraries + */ function config_alter(&$libraries) { $bootswatch = e107::pref('theme', 'bootswatch', false); diff --git a/e107_themes/bootstrap3/theme_shortcodes.php b/e107_themes/bootstrap3/theme_shortcodes.php index 407d6ab62..0ea395f2f 100644 --- a/e107_themes/bootstrap3/theme_shortcodes.php +++ b/e107_themes/bootstrap3/theme_shortcodes.php @@ -136,7 +136,8 @@ class theme_shortcodes extends e_shortcode e107::includeLan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); - $tp = e107::getParser(); + $tp = e107::getParser(); + $login_menu_shortcodes = null; require(e_PLUGIN."login_menu/login_menu_shortcodes.php"); // don't use 'require_once'. $direction = vartrue($parm['dir']) == 'up' ? ' dropup' : ''; @@ -309,6 +310,7 @@ class theme_shortcodes extends e_shortcode $text .= $tp->parseTemplate($TEMPLATE, true, $sc); // parse news shortcodes. } + unset($parm); return $text; @@ -338,7 +340,7 @@ class theme_shortcodes extends e_shortcode $parm['layout'] = 'media-list'; // default | or any key as defined in news_grid_template.php $parm['featured'] = 0; - + unset($data); return "