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 "Return a TTL when formatting times"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryAllImages.php
diff --git
a/includes/api/ApiQueryAllImages.php
b/includes/api/ApiQueryAllImages.php
index
4266a8e
..
68d968f
100644
(file)
--- a/
includes/api/ApiQueryAllImages.php
+++ b/
includes/api/ApiQueryAllImages.php
@@
-228,8
+228,7
@@
class ApiQueryAllImages extends ApiQueryGeneratorBase {
}
if ( !is_null( $params['mime'] ) ) {
- global $wgMiserMode;
- if ( $wgMiserMode ) {
+ if ( $this->getConfig()->get( 'MiserMode' ) ) {
$this->dieUsage( 'MIME search disabled in Miser Mode', 'mimesearchdisabled' );
}