diff options
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 12 |
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.= '&image_id='.$row['id']; + $url_link = PHPWG_ROOT_PATH.'picture.php?'; + if ( isset($page['cat']) ) + { + $url_link .= 'cat='.$page['cat'].'&'; + } + $url_link.= 'image_id='.$row['id']; if ($page['cat'] == 'search') { $url_link.= '&search='.$_GET['search']; @@ -90,6 +94,10 @@ foreach ($pictures as $row) { $url_link.= '&list='.$_GET['list']; } + if ( isset($_GET['calendar']) ) + { + $url_link.= '&calendar='.$_GET['calendar']; + } $template->assign_block_vars( 'thumbnails.line.thumbnail', |