This requires 1.42 for the new type
Bug: T354216
Follow-Up: Ib70e4e67e4cb1b65ac218c095864fb6eb43d0929
Change-Id: Id3f5f31bcc6183e8a72b05bfe344a72285c7a8b2
- Use IContextSource::getActionName directly and not
MediaWiki::getAction
- Use IContextSource::getConfig instead of MainConfig
- Use getRawVal to check against constant value
- Use local var to avoid repeatly calls
Change-Id: I592e4451035c37c35fe181fa69b080f3f7a31ec8
This matches modern practice a little better: the InputBoxHooks class
can (eventually) contain the service objects needed by this extension
and make them available to the hooks. It also avoids the need to
explicitly name this class and its namespace.
Followup-To: Iaaff18b50619f490a4437be7f4d95845c8e0eedb
Change-Id: I07a574eca2d0012e3f7e6172d75cffd34392b1b4
This is a pre-patch for I5144fd6c54 to add a namespace for InputBox and
making sure that this still works, independently of what we're doing
later.
Change-Id: Iaaff18b50619f490a4437be7f4d95845c8e0eedb
$params['title'] can be an array if someone has messed with the query
parameters.
Use WebRequest::getText(), which guarantees strings (and which is
already used for 'prefix' earlier in this method).
Change-Id: I7b974067fdee22fc42c07fad98af4619fa850269