From: Domas Mituzas Date: Tue, 27 Mar 2007 19:01:55 +0000 (+0000) Subject: another miser-mode target... X-Git-Tag: 1.31.0-rc.0~53584 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=2afcd206a2b1368554cf088753bf33afba8fa2f9;p=lhc%2Fweb%2Fwiklou.git another miser-mode target... --- 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" . "" ); }