From 27c16711eacaa075c06bc8b74689625f42cfbf70 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 27 Mar 2007 16:50:09 +0000 Subject: [PATCH] don't allow search for new images in miser mode --- includes/SpecialNewimages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index 1e114b3605..72b169b145 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -8,7 +8,7 @@ * */ function wfSpecialNewimages( $par, $specialPage ) { - global $wgUser, $wgOut, $wgLang, $wgRequest, $wgGroupPermissions; + global $wgUser, $wgOut, $wgLang, $wgRequest, $wgGroupPermissions, $wgMiserMode; $wpIlMatch = $wgRequest->getText( 'wpIlMatch' ); $dbr = wfGetDB( DB_SLAVE ); @@ -74,7 +74,7 @@ function wfSpecialNewimages( $par, $specialPage ) { $where = array(); $searchpar = ''; - if ( $wpIlMatch != '' ) { + if ( $wpIlMatch != '' && !$wgMiserMode) { $nt = Title::newFromUrl( $wpIlMatch ); if($nt ) { $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); @@ -157,7 +157,7 @@ function wfSpecialNewimages( $par, $specialPage ) { $sub = wfMsg( 'ilsubmit' ); $titleObj = SpecialPage::getTitleFor( 'Newimages' ); $action = $titleObj->escapeLocalURL( $hidebots ? '' : 'hidebots=0' ); - if ($shownav) { + if ($shownav && !$wgMiserMode) { $wgOut->addHTML( "
" . Xml::input( 'wpIlMatch', 20, $wpIlMatch ) . ' ' . -- 2.20.1