From: Jens Frank Date: Mon, 30 May 2005 19:02:56 +0000 (+0000) Subject: Disable fulltext image name search in Special:Imagelist during MiserMode X-Git-Tag: 1.5.0alpha2~31 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=164c9ed600c3a5addfed20c67bf687fbb3ad878b;p=lhc%2Fweb%2Fwiklou.git Disable fulltext image name search in Special:Imagelist during MiserMode --- diff --git a/includes/SpecialImagelist.php b/includes/SpecialImagelist.php index 6a8f3fa151..6e7cf99ec8 100644 --- a/includes/SpecialImagelist.php +++ b/includes/SpecialImagelist.php @@ -9,7 +9,7 @@ * */ function wfSpecialImagelist() { - global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest; + global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest, $wgMiserMode; $sort = $wgRequest->getVal( 'sort' ); $wpIlMatch = $wgRequest->getText( 'wpIlMatch' ); @@ -22,7 +22,7 @@ function wfSpecialImagelist() { $bydate = wfMsg( "bydate" ); $bysize = wfMsg( "bysize" ); - if ( !empty( $wpIlMatch ) ) { + if ( !$wgMiserMode && !empty( $wpIlMatch ) ) { $nt = Title::newFromUrl( $wpIlMatch ); if($nt ) { $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); @@ -60,11 +60,13 @@ function wfSpecialImagelist() { $titleObj = Title::makeTitle( NS_SPECIAL, "Imagelist" ); $action = $titleObj->escapeLocalURL( "sort={$sort}&limit={$limit}" ); - $wgOut->addHTML( "
" . - " " . - "
" ); + if ( !$wgMiserMode ) { + $wgOut->addHTML( "
" . + " " . + "
" ); + } $nums = array( 50, 100, 250, 500 ); $here = Title::makeTitle( NS_SPECIAL, 'Imagelist' );