r20745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20744‎ | r20745 | r20746 >
Date:19:01, 27 March 2007
Author:midom
Status:old
Tags:
Comment:
another miser-mode target...
Modified paths:
  • /trunk/phase3/includes/SpecialLog.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -121,6 +121,7 @@
122122 * @private
123123 */
124124 function limitTitle( $page , $pattern ) {
 125+ global $wgMiserMode;
125126 $title = Title::newFromText( $page );
126127 if( empty( $page ) || is_null( $title ) ) {
127128 return false;
@@ -128,7 +129,7 @@
129130 $this->title =& $title;
130131 $this->pattern = $pattern;
131132 $ns = $title->getNamespace();
132 - if ( $pattern ) {
 133+ if ( $pattern && !$wgMiserMode ) {
133134 $safetitle = $this->db->escapeLike( $title->getDBkey() ); // use escapeLike to avoid expensive search patterns like 't%st%'
134135 $this->whereClauses[] = "log_namespace=$ns AND log_title LIKE '$safetitle%'";
135136 } else {
@@ -399,7 +400,7 @@
400401 * @private
401402 */
402403 function showOptions( &$out ) {
403 - global $wgScript;
 404+ global $wgScript, $wgMiserMode;
404405 $action = htmlspecialchars( $wgScript );
405406 $title = SpecialPage::getTitleFor( 'Log' );
406407 $special = htmlspecialchars( $title->getPrefixedDBkey() );
@@ -410,7 +411,7 @@
411412 $this->getTypeMenu() . "\n" .
412413 $this->getUserInput() . "\n" .
413414 $this->getTitleInput() . "\n" .
414 - $this->getTitlePattern() . "\n" .
 415+ (!$wgMiserMode?($this->getTitlePattern()."\n"):"") .
415416 Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
416417 "</fieldset></form>" );
417418 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r21380Revert Special:Log to r20745 with non-ugly formbrion14:38, 19 April 2007