From 2afcd206a2b1368554cf088753bf33afba8fa2f9 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 27 Mar 2007 19:01:55 +0000 Subject: [PATCH] another miser-mode target... --- includes/SpecialLog.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 7b021c9cbd..9c556962cc 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -121,6 +121,7 @@ class LogReader { * @private */ function limitTitle( $page , $pattern ) { + global $wgMiserMode; $title = Title::newFromText( $page ); if( empty( $page ) || is_null( $title ) ) { return false; @@ -128,7 +129,7 @@ class LogReader { $this->title =& $title; $this->pattern = $pattern; $ns = $title->getNamespace(); - if ( $pattern ) { + if ( $pattern && !$wgMiserMode ) { $safetitle = $this->db->escapeLike( $title->getDBkey() ); // use escapeLike to avoid expensive search patterns like 't%st%' $this->whereClauses[] = "log_namespace=$ns AND log_title LIKE '$safetitle%'"; } else { @@ -399,7 +400,7 @@ class LogViewer { * @private */ function showOptions( &$out ) { - global $wgScript; + global $wgScript, $wgMiserMode; $action = htmlspecialchars( $wgScript ); $title = SpecialPage::getTitleFor( 'Log' ); $special = htmlspecialchars( $title->getPrefixedDBkey() ); @@ -410,7 +411,7 @@ class LogViewer { $this->getTypeMenu() . "\n" . $this->getUserInput() . "\n" . $this->getTitleInput() . "\n" . - $this->getTitlePattern() . "\n" . + (!$wgMiserMode?($this->getTitlePattern()."\n"):"") . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" . "" ); } -- 2.20.1