Pman/Images.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 4 Nov 2010 05:17:44 +0000 (13:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 4 Nov 2010 05:17:44 +0000 (13:17 +0800)
Pman/Images.php

index 1cfc78a..e631017 100644 (file)
@@ -82,8 +82,8 @@ class Pman_Images extends Pman
             }
             $img->limit(1);
             if (!$img->find(true)) {
-                header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png');
-                die("no images for that item: " . htmlspecialchars($id));
+                header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
+                urlencode("no images for that item: " . htmlspecialchars($id)));
             }
             
             $id = $img->id;