Ignore:
Timestamp:
Feb 23, 2006, 5:53:11 PM (18 years ago)
Author:
plg
Message:

modification: DAY() MySQL function replaced by DAYOFMONTH() to improve
backward compatibility (this function was added in MySQL 4.1)

bug fixed: with chronology mode, PWG displays thumbnails on main page if
even if no category (which will soon be called "section") is set. This was
producing warnings on category.php from include/category_default.inc.php.

refactoring: on include/calendar_base.class.php and
include/functions_calendar.inc.php. Unix file format, coding guidelines,
etc. While trying to understand the code, I've made some presentation
modification to clarify variable names and so on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_monthly.class.php

    r1051 r1053  
    7474      $this->build_nav_bar2($view_type, $requested, 1, 'MONTH', $lang['month']); // month
    7575    if (count($requested)>1)
    76       $this->build_nav_bar2($view_type, $requested, 2, 'DAY' ); // days
     76      $this->build_nav_bar2($view_type, $requested, 2, 'DAYOFWEEK' ); // days
    7777  }
    7878  return false;
     
    124124      if (isset($requested[2]) and $requested[2]!='any')
    125125      {
    126         $res .= ' AND DAY('.$this->date_field.')='.$requested[2];
     126        $res .= ' AND DAYOFMONTH('.$this->date_field.')='.$requested[2];
    127127      }
    128128    }
     
    138138    if (isset($requested[2]) and $requested[2]!='any')
    139139    {
    140       $res .= ' AND DAY('.$this->date_field.')='.$requested[2];
     140      $res .= ' AND DAYOFMONTH('.$this->date_field.')='.$requested[2];
    141141    }
    142142  }
Note: See TracChangeset for help on using the changeset viewer.