X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Images.php;h=5a8bed3a7d256d46daeceb6ad3d614d2061b8a42;hb=643c2ebb6516bfbd915fda88744d74e96145e7f7;hp=e6da138a4aab66664f360a3fb6bbfc9c9ce7df31;hpb=2992712537d64d6ad9a77afd4169dd56fe3df8b1;p=Pman.Core diff --git a/Images.php b/Images.php index e6da138a..5a8bed3a 100644 --- a/Images.php +++ b/Images.php @@ -181,7 +181,7 @@ class Pman_Core_Images extends Pman $img = DB_DataObjecT::factory('Images'); if (!$id || !$img->get($id)) { - $this->imgErr("image has been removed or deleted.",$s); + $this->imgErr("image has been removed or deleted.",$s); } if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) { @@ -203,11 +203,10 @@ class Pman_Core_Images extends Pman if(!$this->hasPermission($img)){ - print_r('no permission');exit; $this->imgErr("access to this image/file has been denied.",$s); } - print_R($img);exit; + $this->serve($img); exit; }