From 164c9ed600c3a5addfed20c67bf687fbb3ad878b Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 30 May 2005 19:02:56 +0000 Subject: [PATCH] Disable fulltext image name search in Special:Imagelist during MiserMode --- includes/SpecialImagelist.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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' ); -- 2.20.1