dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Allow partially blocked users to import images"
[lhc/web/wiklou.git]
/
includes
/
gallery
/
TraditionalImageGallery.php
diff --git
a/includes/gallery/TraditionalImageGallery.php
b/includes/gallery/TraditionalImageGallery.php
index
d25d9aa
..
fadd587
100644
(file)
--- a/
includes/gallery/TraditionalImageGallery.php
+++ b/
includes/gallery/TraditionalImageGallery.php
@@
-111,8
+111,8
@@
class TraditionalImageGallery extends ImageGalleryBase {
if ( $this->mParser instanceof Parser ) {
$this->mParser->addTrackingCategory( 'broken-file-category' );
}
if ( $this->mParser instanceof Parser ) {
$this->mParser->addTrackingCategory( 'broken-file-category' );
}
- } elseif ( $this->mHideBadImages
-
&& wfIsBadImag
e( $nt->getDBkey(), $this->getContextTitle() )
+ } elseif ( $this->mHideBadImages
&& MediaWikiServices::getInstance()->getBadFileLookup()
+
->isBadFil
e( $nt->getDBkey(), $this->getContextTitle() )
) {
# The image is blacklisted, just show it as a text link.
$thumbhtml = "\n\t\t\t" . '<div class="thumb" style="height: ' .
) {
# The image is blacklisted, just show it as a text link.
$thumbhtml = "\n\t\t\t" . '<div class="thumb" style="height: ' .