1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 21:32:09 +02:00

eURL and news administration cleanup, server caching added to various news related places, blog calendar fixes

This commit is contained in:
secretr
2009-09-25 20:20:23 +00:00
parent f9ac77365f
commit c32d6cc02e
10 changed files with 264 additions and 180 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/blogcalendar_menu/archive.php,v $
| $Revision: 1.4 $
| $Date: 2008-10-21 19:03:16 $
| $Author: e107steved $
| $Revision: 1.5 $
| $Date: 2009-09-25 20:20:22 $
| $Author: secretr $
+----------------------------------------------------------------------------+
| Based on code by: Thomas Bouve (crahan@gmx.net)
*/
@@ -92,7 +92,7 @@ for($i = $start_year; $i <= $end_year; $i++)
list($xmonth, $xday) = explode(" ", date("n j", $news['news_datestamp']));
if (!$day_links[$xmonth][$xday])
{
$day_links[$xmonth][$xday] = e_BASE."news.php?day.".formatdate($req_year, $xmonth, $xday);
$day_links[$xmonth][$xday] = e107::getUrl()->create('core:news', 'main', 'action=day&value='.formatDate($req_year, $xmonth, $xday));
}
}
}
@@ -123,7 +123,7 @@ for($i = 1; $i <= 12; $i++)
// href the current month regardless of newsposts or any month with news
if (($req_year == $cur_year && $i == $cur_month) || $day_links[$i])
{
$archive .= "<a class='forumlink' href='".e_BASE."news.php?month.".formatDate($req_year, $i)."'>".$marray[$i-1]."</a>";
$archive .= "<a class='forumlink' href='".e107::getUrl()->create('core:news', 'main', 'action=month&value='.formatDate($req_year, $i))."'>".$marray[$i-1]."</a>";
}
else
{