Happy New Year
[squirrelmail.git] / plugins / calendar / functions.php
index 047ffd06b506bf7d36f7126f622f001d7a74e100..ab3fa8171ac4c3ea71568a309396f336330116e7 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Other calendar plugin functions.
  *
- * @copyright 2002-2009 The SquirrelMail Project Team
+ * @copyright 2002-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -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 '</td></tr>';