Extension talk:SearchBox

From mediawiki.org
Jump to navigation Jump to search

Where are the php files?[edit]

In the Installation Instructions, it says to "Copy the SearchBox folder in your extensions directory." Where might that be?

I'm using MediaWiki 1.24...does the post below apply?

Mediawiki 1.24.[edit]

is this extension still working with Mediawiki 1.24.X ?

No. 1.24 removed escapeLocalUrl(). To fix, go to SearchBox.hooks.php, find
'action' => SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(),
then replace it with
. Fereal (talk) 10:58, 31 December 2014 (UTC)
Correction on the above, I was thinking of linkUrl (which was private anyway). The correct one is
'action' => SpecialPage::getTitleFor( 'Search' )->getLocalUrl(),
Fereal (talk) 21:53, 1 January 2015 (UTC)