Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -121,6 +121,7 @@ |
122 | 122 | * @private |
123 | 123 | */ |
124 | 124 | function limitTitle( $page , $pattern ) { |
| 125 | + global $wgMiserMode; |
125 | 126 | $title = Title::newFromText( $page ); |
126 | 127 | if( empty( $page ) || is_null( $title ) ) { |
127 | 128 | return false; |
— | — | @@ -128,7 +129,7 @@ |
129 | 130 | $this->title =& $title; |
130 | 131 | $this->pattern = $pattern; |
131 | 132 | $ns = $title->getNamespace(); |
132 | | - if ( $pattern ) { |
| 133 | + if ( $pattern && !$wgMiserMode ) { |
133 | 134 | $safetitle = $this->db->escapeLike( $title->getDBkey() ); // use escapeLike to avoid expensive search patterns like 't%st%' |
134 | 135 | $this->whereClauses[] = "log_namespace=$ns AND log_title LIKE '$safetitle%'"; |
135 | 136 | } else { |
— | — | @@ -399,7 +400,7 @@ |
400 | 401 | * @private |
401 | 402 | */ |
402 | 403 | function showOptions( &$out ) { |
403 | | - global $wgScript; |
| 404 | + global $wgScript, $wgMiserMode; |
404 | 405 | $action = htmlspecialchars( $wgScript ); |
405 | 406 | $title = SpecialPage::getTitleFor( 'Log' ); |
406 | 407 | $special = htmlspecialchars( $title->getPrefixedDBkey() ); |
— | — | @@ -410,7 +411,7 @@ |
411 | 412 | $this->getTypeMenu() . "\n" . |
412 | 413 | $this->getUserInput() . "\n" . |
413 | 414 | $this->getTitleInput() . "\n" . |
414 | | - $this->getTitlePattern() . "\n" . |
| 415 | + (!$wgMiserMode?($this->getTitlePattern()."\n"):"") . |
415 | 416 | Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" . |
416 | 417 | "</fieldset></form>" ); |
417 | 418 | } |