Page MenuHomePhabricator

AjaxSearch: add title object if not present
Closed, ResolvedPublic

Description

When using the Ajax search feature, no title object was created for the parser. This broke the Semantic Mediawiki extension (that
is: with this extension installed the ajax search did no longer work) and was a "FIXME" in the code.

Attached patch creates a stub title (this is OK, I think, because it's not displayed anywhere) and also changes the style of the
search output, because some wikipedias hide .firstHeading and #contentSub on the main page.


Version: 1.9.x
Severity: normal
OS: Linux

Details

Reference
bz7621

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:22 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz7621.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 2518
Fix the Ajax Search feature by introducing stub title (Patch)

Attached:

  • Bug 7864 has been marked as a duplicate of this bug. ***

I fixed it between 1.9.0 and 1.9.1 by initializing wgTitle
before loading the ajaxresponder.