dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c2a2d5
)
Go result was going straight to google fallback instead of the regular search if...
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 29 Feb 2004 07:24:47 +0000
(07:24 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 29 Feb 2004 07:24:47 +0000
(07:24 +0000)
includes/SearchEngine.php
patch
|
blob
|
history
diff --git
a/includes/SearchEngine.php
b/includes/SearchEngine.php
index
0e182fc
..
40bce80
100644
(file)
--- a/
includes/SearchEngine.php
+++ b/
includes/SearchEngine.php
@@
-471,11
+471,11
@@
class SearchEngine {
foreach( array(NS_MAIN, NS_WP, NS_USER, NS_IMAGE, NS_MEDIAWIKI) as $namespace){
$anyhit |= SearchEngine::doFuzzyTitleSearch( $search, $namespace );
}
- }
+ }
+
if( ! $anyhit ){
-
$wgOut->addHTML( wfMsg("notitlematches")
);
+
return $this->showResults(
);
}
- $wgOut->addHTML( wfMsg( "googlesearch", htmlspecialchars( $search ), $GLOBALS['wgInputEncoding'] ) );
}
/* static */ function doFuzzyTitleSearch( $search, $namespace ){