diff --git a/e107_plugins/banner/banner_menu.php b/e107_plugins/banner/banner_menu.php index d5b9eaa5d..75ae27e61 100644 --- a/e107_plugins/banner/banner_menu.php +++ b/e107_plugins/banner/banner_menu.php @@ -18,7 +18,7 @@ */ if (!defined('e107_INIT')) { exit; } - +e107::lan('banner'); if(file_exists(THEME.'templates/banner/banner_template.php')) // v2.x location. { @@ -33,6 +33,9 @@ else require(e_PLUGIN.'banner/banner_template.php'); } + + + $menu_pref = e107::getConfig('menu')->getPref(''); // legacy preference lookup. if(defset('BOOTSTRAP')) diff --git a/e107_plugins/blogcalendar_menu/blogcalendar_menu.php b/e107_plugins/blogcalendar_menu/blogcalendar_menu.php index 64ed0cd26..23ab83532 100644 --- a/e107_plugins/blogcalendar_menu/blogcalendar_menu.php +++ b/e107_plugins/blogcalendar_menu/blogcalendar_menu.php @@ -122,7 +122,7 @@ if(false === $cached) $xyear = date("Y", $news['news_datestamp']); if (!isset($month_links[$xmonth]) || !$month_links[$xmonth]) { - $month_links[$xmonth] = e107::getUrl()->create('news/list/month', 'idv='.formatDate($req_year, $xmonth));//e_BASE."news.php?month.".formatDate($req_year, $xmonth); + $month_links[$xmonth] = e107::getUrl()->create('news/list/month', 'id='.formatDate($req_year, $xmonth));//e_BASE."news.php?month.".formatDate($req_year, $xmonth); } // if(($news['news_datestamp'] >= $month_start && $news['news_datestamp'] <= $month_end) || (deftrue('BOOTSTRAP') && $news['news_datestamp'] >= $year_start && $news['news_datestamp'] <= $year_end)) { @@ -178,7 +178,7 @@ if(false === $cached) { foreach($val as $month=>$v) { - $menu .= calendar($req_day, $month, $year, $links[$year][$month], $pref['blogcal_ws']); + $menu .= calendar($req_day, $month, $year, varset($links[$year][$month],array()), $pref['blogcal_ws']); } }