dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee96a4
)
Drag in a change noticed in wmf branches
author
Sam Reed
<reedy@users.mediawiki.org>
Sat, 11 Feb 2012 15:14:15 +0000
(15:14 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Sat, 11 Feb 2012 15:14:15 +0000
(15:14 +0000)
thumb.php
patch
|
blob
|
history
diff --git
a/thumb.php
b/thumb.php
index
60a7ffb
..
eb0d67d
100644
(file)
--- a/
thumb.php
+++ b/
thumb.php
@@
-124,7
+124,7
@@
function wfStreamThumb( array $params ) {
// Check permissions if there are read restrictions
if ( !in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) ) {
- if ( !$img->getTitle()->userCan( 'read' ) ) {
+ if ( !$img->getTitle()
|| !$img->getTitle()
->userCan( 'read' ) ) {
wfThumbError( 403, 'Access denied. You do not have permission to access ' .
'the source file.' );
wfProfileOut( __METHOD__ );