From 107f0e382cecbd8c3d38e84b65a9992d8e741e08 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 28 Jan 2010 16:59:27 +0000 Subject: [PATCH] displayInternalLink() was removed 2.5 years ago (revision 12549), but this plugin was not updated. Thanks to Christian Kujau for noticing. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13898 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/calendar/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/calendar/functions.php b/plugins/calendar/functions.php index 305eaf8b..d1d58e39 100644 --- a/plugins/calendar/functions.php +++ b/plugins/calendar/functions.php @@ -32,15 +32,16 @@ function calendar_do() { function calendar_header() { global $color,$year,$day,$month; +// FIXME: Don't echo HTML from core. This whole function should probably be moved into a template file echo html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) . html_tag( 'tr' ) . html_tag( 'td', '', 'left', '', 'width="100%"' ); - displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right"); + echo makeInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right"); echo "  \n"; - displayInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right"); + echo makeInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right"); echo "  \n"; - // displayInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right"); + // echo makeInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right"); // echo "  \n"; echo ''; -- 2.25.1