aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-08 01:17:07 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-08 01:17:07 +0000
commit0e78db47de2041912447dd5bbbfafb7684e7480f (patch)
treeafb3fe9de5bdbbe5c0ce624f8ce60e65c6ef57c3 /picture.php
parent687a7ca122b56264c63830112ca43ea7db2c3c7b (diff)
- remake of Remote sites and Synchronize:
- synchronization for remote and local sites are done by the same code - remote sites can update metadata now (not before) - bug 279 - fixes bug 82: has_high column - improve feature 280: user sort by filename - fix path to template mimetypes icons - bug 284: session cookie lifetime, deletion on logout and corrected issue when db upgrades were missing git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/picture.php b/picture.php
index 2b53b4868..f63301a24 100644
--- a/picture.php
+++ b/picture.php
@@ -249,20 +249,10 @@ foreach (array('prev', 'current', 'next') as $i)
// high quality picture
if ($i == 'current')
{
- $url_high=$cat_directory.'/pwg_high/'.$row['file'];
- if (url_is_remote($cat_directory))
+ if ($row['has_high']=='true')
{
- if ($row['has_high'])
- {
- $picture[$i]['high'] = $url_high;
- }
- }
- else
- {
- if (@fopen($url_high, 'r'))
- {
- $picture[$i]['high'] = $url_high;
- }
+ $url_high=$cat_directory.'/pwg_high/'.$row['file'];
+ $picture[$i]['high'] = $url_high;
}
}
}
@@ -1054,7 +1044,7 @@ if ($page['show_comments'])
// navigation bar creation
$url = PHPWG_ROOT_PATH.'picture.php';
- $url.= get_query_string_diff(array('rate','add_fav'));
+ $url.= get_query_string_diff(array('rate','add_fav','start'));
if (!isset( $_GET['start'] )
or !is_numeric( $_GET['start'] )