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 set Reference to bz20948.
bzimport added a subscriber: Unknown Object (MLST).
Mormegil created this task.Oct 2 2009, 12:40 PM
IAlex added a comment.Oct 2 2009, 6:28 PM

Fixed in r57298.

Add Comment