From: Erik Moeller Date: Sun, 15 Jun 2003 08:10:47 +0000 (+0000) Subject: Go button: try all upper case before near match X-Git-Tag: 1.1.0~490 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=385e46d18b4a586d016031e7f294887759acbafe;p=lhc%2Fweb%2Fwiklou.git Go button: try all upper case before near match --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index aee5037153..1960573d12 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -368,7 +368,7 @@ class SearchEngine { $wgArticle->view(); return; } - + # Now try capitalized string # $wgTitle=Title::newFromText( ucwords( strtolower( $search ) ) ); @@ -377,6 +377,14 @@ class SearchEngine { return; } + # Now try all upper case + # + $wgTitle = Title::newFromText( strtoupper( $search ) ); + if ( 0 != $wgArticle->getID() ) { + $wgArticle->view(); + return; + } + # Try a near match # $this->parseQuery();