From: Domas Mituzas Date: Tue, 27 Mar 2007 16:50:09 +0000 (+0000) Subject: don't allow search for new images in miser mode X-Git-Tag: 1.31.0-rc.0~53587 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=27c16711eacaa075c06bc8b74689625f42cfbf70;p=lhc%2Fweb%2Fwiklou.git don't allow search for new images in miser mode --- 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 ) . ' ' .