Searchmenu-new (“Create the page "Xxx" on this wiki!”) is shown for special page names
Closed, ResolvedPublic


exists() should be isKnown()

When you do a fulltext search for something which is an exact name of a special page (see the linked URL), the search results page begins with a message like

Create the page "[[Special:AllPages]]" on this wiki!

which is obviously a nonsense.

The problem is that SpecialSearch::showCreateLink checks for Title::exists(), while it should use Title::isKnown(). (Or, even better, add a bit more logic into that function, see bug #19600.)

Version: unspecified
Severity: trivial

Attached: SpecialSearch.php.diff

bzimport added projects: MediaWiki-Search, Easy.Via ConduitNov 21 2014, 10:58 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz20948.
Mormegil created this task.Via LegacyOct 2 2009, 12:40 PM
IAlex added a comment.Via ConduitOct 2 2009, 6:28 PM

Fixed in r57298.

Add Comment