mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
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:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user