aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-20 04:39:37 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-20 04:39:37 +0000
commitd62ce7376079a7435317fc843eb04f3927e4adad (patch)
treef0c689b50fa7107cdb280b21e1e9309b835ee802 /include/category_default.inc.php
parent08b63815640b2fc8059c243a4f9feaf865801a25 (diff)
calendar redesign: step 1
git-svn-id: http://piwigo.org/svn/trunk@1047 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r--include/category_default.inc.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 009d9ef14..558e3d389 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -80,8 +80,12 @@ foreach ($pictures as $row)
$thumbnail_title .= ' : '.$row['filesize'].' KB';
}
// url link on picture.php page
- $url_link = PHPWG_ROOT_PATH.'picture.php?cat='.$page['cat'];
- $url_link.= '&amp;image_id='.$row['id'];
+ $url_link = PHPWG_ROOT_PATH.'picture.php?';
+ if ( isset($page['cat']) )
+ {
+ $url_link .= 'cat='.$page['cat'].'&amp;';
+ }
+ $url_link.= 'image_id='.$row['id'];
if ($page['cat'] == 'search')
{
$url_link.= '&amp;search='.$_GET['search'];
@@ -90,6 +94,10 @@ foreach ($pictures as $row)
{
$url_link.= '&amp;list='.$_GET['list'];
}
+ if ( isset($_GET['calendar']) )
+ {
+ $url_link.= '&amp;calendar='.$_GET['calendar'];
+ }
$template->assign_block_vars(
'thumbnails.line.thumbnail',