Images.php wip_alan_T7608_fix_image_names
authorAlan <alan@roojs.com>
Mon, 27 Mar 2023 04:52:00 +0000 (12:52 +0800)
committerAlan <alan@roojs.com>
Mon, 27 Mar 2023 04:52:00 +0000 (12:52 +0800)
Images.php

index 6571233..fc1294d 100644 (file)
@@ -218,7 +218,8 @@ class Pman_Core_Images extends Pman
     }
     
     function imgErr($reason,$path) {
-        //header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' . urlencode($reason));
+        header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' . urlencode($reason) );
+        header('X-Error: ' . $reason . ':' . $path);
         echo $reason . ':' . $path;
         exit;
     }