Index: trunk/phase3/includes/SpecialNewimages.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | * |
10 | 10 | */ |
11 | 11 | function wfSpecialNewimages( $par, $specialPage ) { |
12 | | - global $wgUser, $wgOut, $wgLang, $wgRequest, $wgGroupPermissions; |
| 12 | + global $wgUser, $wgOut, $wgLang, $wgRequest, $wgGroupPermissions, $wgMiserMode; |
13 | 13 | |
14 | 14 | $wpIlMatch = $wgRequest->getText( 'wpIlMatch' ); |
15 | 15 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | |
76 | 76 | $where = array(); |
77 | 77 | $searchpar = ''; |
78 | | - if ( $wpIlMatch != '' ) { |
| 78 | + if ( $wpIlMatch != '' && !$wgMiserMode) { |
79 | 79 | $nt = Title::newFromUrl( $wpIlMatch ); |
80 | 80 | if($nt ) { |
81 | 81 | $m = $dbr->strencode( strtolower( $nt->getDBkey() ) ); |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | $sub = wfMsg( 'ilsubmit' ); |
159 | 159 | $titleObj = SpecialPage::getTitleFor( 'Newimages' ); |
160 | 160 | $action = $titleObj->escapeLocalURL( $hidebots ? '' : 'hidebots=0' ); |
161 | | - if ($shownav) { |
| 161 | + if ($shownav && !$wgMiserMode) { |
162 | 162 | $wgOut->addHTML( "<form id=\"imagesearch\" method=\"post\" action=\"" . |
163 | 163 | "{$action}\">" . |
164 | 164 | Xml::input( 'wpIlMatch', 20, $wpIlMatch ) . ' ' . |