aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-10-30 16:51:01 +0000
committerz0rglub <z0rglub@piwigo.org>2004-10-30 16:51:01 +0000
commitfa9a5cd07bc9931d1dffb9c54ab93ce3736ac506 (patch)
tree15fc7529db5ffb81758339a464fc6f080773a45d /picture.php
parent7cd9b65e3299fb8bc6a83e65f89fcecca62f3178 (diff)
- differentiation of links "up to thumbnails" and "home"
git-svn-id: http://piwigo.org/svn/trunk@588 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/picture.php b/picture.php
index 7c5aa42fa..e9abfc613 100644
--- a/picture.php
+++ b/picture.php
@@ -168,6 +168,7 @@ foreach (array('prev', 'current', 'next') as $i)
$picture[$i]['src'] = $cat_directory.$row['file'];
// if we are working on the "current" element, we search if there is a
// high quality picture
+ // FIXME : with remote pictures, this "remote fopen" takes long...
if ($i == 'current')
{
if (@fopen($cat_directory.'pwg_high/'.$row['file'], 'r'))
@@ -202,11 +203,11 @@ foreach (array('prev', 'current', 'next') as $i)
$picture[$i]['url'].= '&amp;image_id='.$row['id'];
}
-$url_home = PHPWG_ROOT_PATH.'category.php?cat='.$page['cat'].'&amp;';
-$url_home.= 'num='.$page['num'];
+$url_up = PHPWG_ROOT_PATH.'category.php?cat='.$page['cat'].'&amp;';
+$url_up.= 'num='.$page['num'];
if ( $page['cat'] == 'search' )
{
- $url_home.= "&amp;search=".$_GET['search'];
+ $url_up.= "&amp;search=".$_GET['search'];
}
$url_admin = PHPWG_ROOT_PATH.'admin.php?page=picture_modify';
@@ -273,8 +274,8 @@ if ( isset( $_GET['add_fav'] ) )
{
// there is no favorite picture anymore we redirect the user to the
// category page
- $url = add_session_id( $url_home );
- redirect( $url );
+ $url = add_session_id($url_up);
+ redirect($url);
}
else if (!$has_prev)
{
@@ -461,8 +462,11 @@ $template->assign_vars(array(
'L_DOWNLOAD_HINT' => $lang['download_hint'],
'L_PICTURE_METADATA' => $lang['picture_show_metadata'],
'L_PICTURE_HIGH' => $lang['picture_high'],
+ 'L_UP_HINT' => $lang['up_hint'],
+ 'L_UP_ALT' => $lang['up_alt'],
- 'U_HOME' => add_session_id($url_home),
+ 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'),
+ 'U_UP' => add_session_id($url_up),
'U_METADATA' => add_session_id($url_metadata),
'U_ADMIN' => add_session_id($url_admin),
'U_SLIDESHOW'=> add_session_id($url_slide),