aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-28 01:26:37 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-28 01:26:37 +0000
commit7690f9bb8bfe33b6d0e85c6473f8d39a4fddf0df (patch)
tree80fc0ff864a27cbf3597a0dfbb094fc744cf039d /picture.php
parent51a4de797c76dbda26741acacbda76013caa5f64 (diff)
fix: php 5 errors and warnings
improve: put back update remote site from local listing.xml functionality (allow_url_fopen is false on several ISPs) git-svn-id: http://piwigo.org/svn/trunk@1107 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/picture.php b/picture.php
index 98f5dc027..91a944bc9 100644
--- a/picture.php
+++ b/picture.php
@@ -27,7 +27,6 @@
define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
-include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
// Check Access and exit when user status is not ok
@@ -165,6 +164,7 @@ UPDATE '.CATEGORIES_TABLE.'
}
case 'rate' :
{
+ include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
rate_picture($page['image_id'], $_GET['rate']);
redirect($url_self);
}
@@ -756,8 +756,10 @@ if (isset($_GET['slideshow']))
include(PHPWG_ROOT_PATH.'include/picture_rate.inc.php');
include(PHPWG_ROOT_PATH.'include/picture_comment.inc.php');
-include(PHPWG_ROOT_PATH.'include/picture_metadata.inc.php');
-
+if ($metadata_showable and isset($_GET['metadata']))
+{
+ include(PHPWG_ROOT_PATH.'include/picture_metadata.inc.php');
+}
//------------------------------------------------------------ log informations
pwg_log( 'picture', $title_img, $picture['current']['file'] );