projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea2aa32
)
Images.php
author
edward
<edward@roojs.com>
Wed, 2 Dec 2015 08:10:40 +0000
(16:10 +0800)
committer
edward
<edward@roojs.com>
Wed, 2 Dec 2015 08:10:40 +0000
(16:10 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
70d5365
..
bcbcde2
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-153,7
+153,7
@@
class Pman_Core_Images extends Pman
}
- if(!$this->hasPerm($img)){
+ if(!$this->hasPerm
ission
($img)){
header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
urlencode("image has been removed or deleted."));
}
@@
-162,6
+162,9
@@
class Pman_Core_Images extends Pman
exit;
}
+ function hasPermission($img) {
+ return true;
+ }
function post()
{