Extension talk:SearchBox

From mediawiki.org
Latest comment: 9 years ago by Fereal in topic Mediawiki 1.24.

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
(incorrect),
. Fereal (talk) 10:58, 31 December 2014 (UTC)Reply
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)Reply