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:
435d5b8
)
Fixed process cache for bad images when the list is empty
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 26 Oct 2011 21:48:04 +0000
(21:48 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 26 Oct 2011 21:48:04 +0000
(21:48 +0000)
includes/ImageFunctions.php
patch
|
blob
|
history
diff --git
a/includes/ImageFunctions.php
b/includes/ImageFunctions.php
index
aea00da
..
471465d
100644
(file)
--- a/
includes/ImageFunctions.php
+++ b/
includes/ImageFunctions.php
@@
-19,7
+19,7
@@
* @return bool
*/
function wfIsBadImage( $name, $contextTitle = false ) {
- static $badImages =
false
;
+ static $badImages =
null
;
wfProfileIn( __METHOD__ );
# Handle redirects
@@
-35,7
+35,7
@@
function wfIsBadImage( $name, $contextTitle = false ) {
return $bad;
}
- if(
!$badImages
) {
+ if(
$badImages === null
) {
# Build the list now
$badImages = array();
$lines = explode( "\n", wfMsgForContentNoTrans( 'bad_image_list' ) );