From f88003813641d4c2a419cdb4c1e6e423fe0df868 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 28 May 2006 21:45:53 +0000 Subject: [PATCH] Pass a second parameter to "nogomatch" containing the search terms minus the preceding colon, allowing prettied-up messages --- RELEASE-NOTES | 6 ++++-- includes/SpecialSearch.php | 2 +- languages/Messages.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 52e10537da..93e7967254 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 1591b93235..7711f2e678 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -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 ); } diff --git a/languages/Messages.php b/languages/Messages.php index ba2373d677..b58597c1fc 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -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', -- 2.20.1