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:
800934a
)
Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image.
author
Derk-Jan Hartman
<hartman@users.mediawiki.org>
Mon, 1 Nov 2010 19:36:29 +0000
(19:36 +0000)
committer
Derk-Jan Hartman
<hartman@users.mediawiki.org>
Mon, 1 Nov 2010 19:36:29 +0000
(19:36 +0000)
Apparently makeThumbLink2() does handle non-existing files.
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
d0e288f
..
8d1bf34
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-492,7
+492,7
@@
class Linker {
}
}
- if (
$file && ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] )
) ) {
+ if (
isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed']
) ) {
global $wgContLang;
# Create a thumbnail. Alignment depends on language
# writing direction, # right aligned for left-to-right-