aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-04-28 05:11:46 +0000
committerrvelices <rv-github@modusoptimus.com>2006-04-28 05:11:46 +0000
commite827e05429469912c450d2a1ee6750fffc82dbde (patch)
treef0d3af7ece4569d21491dbd3ac7901e0f41e3f84 /picture.php
parent1cc593f7606c34428271a4beee5755a301988e4e (diff)
bug 349: Nicer display messages instead of "die" when urls cannot be
solved (also set 404 status code for bots) git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1287 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 486e303cb..ed143723f 100644
--- a/picture.php
+++ b/picture.php
@@ -42,7 +42,8 @@ if (isset($page['category']))
// displayed, and execution is stopped
if (!in_array($page['image_id'], $page['items']))
{
- die('Fatal: this picture does not belong to this section');
+ page_not_found('The requested image does not belong to this image set',
+ duplicate_index_url() );
}
// +-----------------------------------------------------------------------+