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: wikibugs-l.
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

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.