X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialListfiles.php;h=3ea56c66a4046851e18483ff765014f8127b2f04;hb=121d68243b36fdec06e70c73c4f6f5c04e9f6f23;hp=7576c1fdb95fcfcc238c8c0aff81aff826f64e0c;hpb=8a00f2445d9d34b9e72fadbca144f110abe65656;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 7576c1fdb9..3ea56c66a4 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -52,7 +52,7 @@ class SpecialListFiles extends IncludableSpecialPage { if ( $this->including() ) { $out->addParserOutputContent( $pager->getBodyOutput() ); } else { - $out->addHTML( $pager->getForm() ); + $pager->getForm(); $out->addParserOutputContent( $pager->getFullOutput() ); } } @@ -90,9 +90,20 @@ class ImageListPager extends TablePager { if ( $userName !== null && $userName !== '' ) { $nt = Title::newFromText( $userName, NS_USER ); + $user = User::newFromName( $userName, false ); if ( !is_null( $nt ) ) { $this->mUserName = $nt->getText(); } + if ( !$user || ( $user->isAnon() && !User::isIP( $user->getName() ) ) ) { + $this->getOutput()->wrapWikiMsg( + "
\n$1\n
", + array( + 'listfiles-userdoesnotexist', + wfEscapeWikiText( $userName ), + ) + ); + } + } if ( $search !== '' && !$this->getConfig()->get( 'MiserMode' ) ) {