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.


git-svn-id: http://piwigo.org/svn/trunk@1053 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2006-02-23 16:53:11 +00:00
parent 347d2e34b3
commit 9a7a232cef
4 changed files with 494 additions and 434 deletions
+16 -13
View File
@@ -79,22 +79,25 @@ foreach ($pictures as $row)
{
$thumbnail_title .= ' : '.$row['filesize'].' KB';
}
// url link on picture.php page
$url_link = PHPWG_ROOT_PATH.'picture.php?';
if ( isset($page['cat']) )
$url_link = PHPWG_ROOT_PATH.'picture.php?image_id='.$row['id'];
if (isset($page['cat']))
{
$url_link .= 'cat='.$page['cat'].'&';
$url_link.= 'cat='.$page['cat'].'&';
if ($page['cat'] == 'search')
{
$url_link.= '&search='.$_GET['search'];
}
else if ($page['cat'] == 'list')
{
$url_link.= '&list='.$_GET['list'];
}
}
$url_link.= 'image_id='.$row['id'];
if ($page['cat'] == 'search')
{
$url_link.= '&search='.$_GET['search'];
}
else if ($page['cat'] == 'list')
{
$url_link.= '&list='.$_GET['list'];
}
if ( isset($_GET['calendar']) )
if (isset($_GET['calendar']))
{
$url_link.= '&calendar='.$_GET['calendar'];
}