Menu

Another day, another bugfix in the Calendar

2002-02-06
2012-10-11
  • Alister Bulman

    Alister Bulman - 2002-02-06

    This is getting to be a habit guys!

    See also Bugs: http://sourceforge.net/tracker/index.php?func=detail&aid=513582&group_id=6121&atid=106121

    if ($isWikiPage) {
    $class = 'cal-day';
    $title = $page_for_date;
    $mday = HTML::em($mday);

    * $url = WikiURL($page_for_date, array('action' => 'edit'));
    }

     
    • Carsten Klapp

      Carsten Klapp - 2002-02-06

      Thanks for the fix, it is now checked in to CVS.
      Carsten

      Index: Calendar.php

      RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/Calendar.php,v
      retrieving revision 1.16
      retrieving revision 1.17
      diff -u -b -I^#: -d -r1.16 -r1.17
      --- Calendar.php    2002/02/03 09:49:06    1.16
      +++ Calendar.php    2002/02/06 02:41:25    1.17
      @@ -2,7 +2,7 @@
      rcs_id('$Id$');

      if (!defined('SECONDS_PER_DAY'))
      -    define('SECONDS_PER_DAY', 24 * 3600);
      +define('SECONDS_PER_DAY', 24 * 3600);

      // FIXME: Still needs:
      //
      @@ -34,13 +34,12 @@
               else {
                   $class = 'cal-hide';
                   $title = sprintf(_("Edit %s"), $page_for_date);
      -            $url = WikiURL($page_for_date, array('action' => 'edit'));
               }
               if ($istoday) {
                   $mday = HTML::strong($mday);
                   $this->setAttr('class', 'cal-today');
               }
      -
      +        $url = WikiURL($page_for_date, array('action' => 'edit'));
               $this->pushContent(HTML::a(array('href' => $url,
                                             'class' => $class,
                                             'title' => $title), $mday));

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.