From ec791815b095bca23044a31c6274b30e2d6db74b Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 29 Mar 2013 05:21:09 -0700 Subject: [PATCH] Admin plugin-link fix --- e107_core/shortcodes/batch/admin_shortcodes.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index 9644a3296..5c6364582 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -1410,11 +1410,12 @@ Inverse 10 10 $admin_cat = e107::getNav()->adminCats(); $array_functions = e107::getNav()->adminLinks('legacy'); - $array_sub_functions = e107::getNav()->adminLinks('sub'); + $array_sub_functions = e107::getNav()->adminLinks('sub'); + $tp = e107::getParser(); $e107 = e107::getInstance(); - $sql = e107::getDb(); + $sql = e107::getDb('sqlp'); parse_str($parm, $parms); $tmpl = strtoupper(varset($parms['tmpl'], 'E_ADMIN_NAVIGATION')); @@ -1502,16 +1503,15 @@ Inverse 10 10 $plug = new e107plugin; $tmp = array(); - if($sql->db_Select("plugin", "*", "plugin_installflag=1 ORDER BY plugin_path")) + if($sql->db_Select("plugin", "*", "plugin_installflag =1 ORDER BY plugin_path")) { while($row = $sql->db_Fetch()) { - if($plug->parse_plugin($row['plugin_path'])) { $plug_vars = $plug->plug_vars; - + if($row['plugin_path']=='calendar_menu') { // print_a($plug_vars);