mirror of
https://github.com/e107inc/e107.git
synced 2025-06-05 02:15:13 +02:00
Issue #1346 - Should correct broken blogcalendar URL issue.
This commit is contained in:
parent
3786274edc
commit
a2575f00a5
@ -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'))
|
||||
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user