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 "Avoid @backupGlobals in ExtensionRegistryTest"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialListfiles.php
diff --git
a/includes/specials/SpecialListfiles.php
b/includes/specials/SpecialListfiles.php
index
2a97abc
..
760704d
100644
(file)
--- a/
includes/specials/SpecialListfiles.php
+++ b/
includes/specials/SpecialListfiles.php
@@
-203,7
+203,9
@@
class ImageListPager extends TablePager {
} else {
return false;
}
} else {
return false;
}
- } elseif ( $this->getConfig()->get( 'MiserMode' ) && $this->mShowAll /* && mUserName === null */ ) {
+ } elseif ( $this->getConfig()->get( 'MiserMode' )
+ && $this->mShowAll /* && mUserName === null */
+ ) {
// no oi_timestamp index, so only alphabetical sorting in this case.
if ( $field === 'img_name' ) {
return true;
// no oi_timestamp index, so only alphabetical sorting in this case.
if ( $field === 'img_name' ) {
return true;
@@
-300,6
+302,7
@@
class ImageListPager extends TablePager {
* @param int $limit
* @param bool $asc
* @return array
* @param int $limit
* @param bool $asc
* @return array
+ * @throws MWException
*/
function reallyDoQuery( $offset, $limit, $asc ) {
$prevTableName = $this->mTableName;
*/
function reallyDoQuery( $offset, $limit, $asc ) {
$prevTableName = $this->mTableName;
@@
-519,6
+522,7
@@
class ImageListPager extends TablePager {
);
}
);
}
+ $this->getOutput()->addModules( 'mediawiki.userSuggest' );
$fields['user'] = array(
'type' => 'text',
'name' => 'user',
$fields['user'] = array(
'type' => 'text',
'name' => 'user',
@@
-527,6
+531,7
@@
class ImageListPager extends TablePager {
'default' => $this->mUserName,
'size' => '40',
'maxlength' => '255',
'default' => $this->mUserName,
'size' => '40',
'maxlength' => '255',
+ 'cssclass' => 'mw-autocomplete-user', // used by mediawiki.userSuggest
);
$fields['ilshowall'] = array(
);
$fields['ilshowall'] = array(
@@
-541,6
+546,7
@@
class ImageListPager extends TablePager {
unset( $query['title'] );
unset( $query['limit'] );
unset( $query['ilsearch'] );
unset( $query['title'] );
unset( $query['limit'] );
unset( $query['ilsearch'] );
+ unset( $query['ilshowall'] );
unset( $query['user'] );
$form = new HTMLForm( $fields, $this->getContext() );
unset( $query['user'] );
$form = new HTMLForm( $fields, $this->getContext() );