Commit graph

8 commits

Author SHA1 Message Date
mhutti1 80703452ed Converted TextExtracts to new extension registration system
Moved most of TextExtracts.php to the new extension.json
and added method for backward compatable implementation
of the extension if still called though the php file. Moved
unit test hook to Hooks.php and deleted old il8n.php.

Bug: T87979
Change-Id: I3d26bd931ad2941268b94474f3e6327282da24ec
2015-12-10 22:59:49 +01:00
Max Semenik fbd8e93a8b Reorg: move hooks to a separate class, introduce namespaces
Change-Id: Ic784010e79b1168f0e112cf912f463036255eb64
2014-12-31 15:05:19 -08:00
Brad Jorsch 781fef39c1 Use new ApiOpenSearchSuggest hook
With Ie0ab9090, the OpenSearchXml extension is merged into core. The new
hook works identically to OpenSearchXml's hook.

The $wgExtractsExtendOpenSearchXml variable should probably be renamed,
but I'm leaving that for a different patch.

Change-Id: I16024aa22578585873cddba1daa4ca0dc05645e1
2014-11-05 17:22:18 -05:00
Kunal Mehta bad296f489 Use Config instead of globals
Converts the API module to use new factory function introduced
in Ieb8549, allowing for proper dependency injection of a Config
instance.

Change-Id: I78cdb5098a6c816f84b3efffeaadf789ca822df7
2014-08-12 23:18:34 -07:00
Waldir Pimenta edc9fbe08b add .noprint and ul.gallery to ignored elements
Change-Id: I6bb782d45853bb9e0682a4ab25556b3de70addce
2014-05-11 03:20:51 +02:00
Max Semenik 11cb9bd3b8 Reorganize blacklisted selectors
* Remove WMF-specific classes already present in mediawiki-config
* Remove TOC via standard ParserOutput functions, it's faster this way
* Comment the remaining classes

Change-Id: Ic2479dbd842b910722114449d3465d9f1ce76078
2014-04-17 22:25:19 -07:00
Siebrand Mazeland da61ddd512 Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: Idbe4ef9a2eaacf1b72efb9b0d36f379c7b5f6d7e
2014-03-29 13:30:16 +01:00
Max Semenik 8ef89a82ea Initial conversion of prop=extracts from MobileFrontend
Change-Id: I8a02f38554f6f06a00e6229889f7545f8ee8976a
2013-12-18 03:40:03 +04:00