mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
merge -r1287 from branch-1_6 to trunk
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/trunk@1288 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+2
-1
@@ -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() );
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user