Pass a second parameter to "nogomatch" containing the search terms minus the precedin...
authorRob Church <robchurch@users.mediawiki.org>
Sun, 28 May 2006 21:45:53 +0000 (21:45 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 28 May 2006 21:45:53 +0000 (21:45 +0000)
RELEASE-NOTES
includes/SpecialSearch.php
languages/Messages.php

index 52e1053..93e7967 100644 (file)
@@ -365,11 +365,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 6117) Use message for history feed description, add German localization
 * (bug 1017) fixed thumbnails of animated gifs.
 * Add APC as object caching option
+* Update to Albanian localization (sq)
+* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
 * Use optimized php5-only microtime()
 * Add possibility to store local message cache as PHP executable script
 * Fix profiling table definition
-* Update to Albanian localization (sq)
-* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
+* Pass a second parameter to "nogomatch" containing the search terms minus the
+  preceding colon, allowing prettied-up messages
 
 == Compatibility ==
 
index 1591b93..7711f2e 100644 (file)
@@ -114,7 +114,7 @@ class SpecialSearch {
                                $editurl = $t->escapeLocalURL( 'action=edit' );
                        }
                }
-               $wgOut->addWikiText( wfMsg('nogomatch', ":$term" ) );
+               $wgOut->addWikiText( wfMsg('nogomatch', ":$term", $term ) );
 
                return $this->showResults( $term );
        }
index ba2373d..b58597c 100644 (file)
@@ -640,7 +640,7 @@ example "fish and and scales".
 Please try another query.',
 'matchtotals'  => "The query \"$1\" matched $2 page titles
 and the text of $3 pages.",
-'nogomatch' => "'''There is no page titled \"$1\".''' You can [[$1|create this page]].",
+'nogomatch' => "'''There is no page titled \"$2\".''' You can [[$1|create this page]].",
 'titlematches' => 'Article title matches',
 'notitlematches' => 'No page title matches',
 'textmatches'  => 'Page text matches',