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

index 42f7dde..e830767 100644 (file)
@@ -106,8 +106,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 file exists");
+                header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason='.;
+                    urlencode("No file exists");
             } 
             $id = $img->id;
             
@@ -118,7 +118,7 @@ class Pman_Images extends Pman
         $img = DB_DataObjecT::factory('Images');
         if (!$id || !$img->get($id)) {
             header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
-            urlencode("image has been removed or deleted."));
+                urlencode("image has been removed or deleted."));
         }
         $this->serve($img);
         exit;