Commit graph

251 commits

Author SHA1 Message Date
Ricordisamoa c689444302 Use defined() instead of constant()
To check for the existance of ApiBase::PARAM_HELP_MSG
while preventing warnings from being issued:
http://php.net/manual/en/function.constant.php#refsect1-function.constant-errors
https://www.mediawiki.org/wiki/Thread:Extension_talk:TextExtracts/PHp_Warnings_in_version_1.24

Fixes commit 9207edfa81

Change-Id: Iceaf4e424cd929df7b3df46544844a4b0001f4d7
2014-12-22 20:41:13 +01:00
Translation updater bot 16203b2374 Localisation updates from https://translatewiki.net.
Change-Id: I5b7d64c29a229c77fc26c5408a0f0904167241b0
2014-12-18 23:23:04 +01:00
Nik Everett 24308948ed Retry parse call if it fails to get section
Some pages don't support extracting sections.  If the parse FauxRequest
fails then try again without the request to get a section.

Bug T78721

Change-Id: I37320208af38ea39e80b292b009bbaa7ab6d1c96
2014-12-17 10:07:56 -05:00
Translation updater bot 6b5cda9c11 Localisation updates from https://translatewiki.net.
Change-Id: I88cca2920ee73f07f3a3441f9c348bb4111fd240
2014-12-08 23:24:11 +01:00
jenkins-bot 3085f40a5d Merge "Use new ApiOpenSearchSuggest hook" 2014-11-27 05:14:28 +00:00
Translation updater bot adbd66735a Localisation updates from https://translatewiki.net.
Change-Id: I948878505b29d71684343f4bd2acf31b0d7ee71b
2014-11-10 22:11:58 +01:00
Translation updater bot 18cbf536cb Localisation updates from https://translatewiki.net.
Change-Id: I36aa7bc2141bea28ac532c71733c9f10eb6ff371
2014-11-09 21:54:20 +01:00
Brad Jorsch d539c1aed8 ApiQueryExtracts: Call setWarning() on $this, not $result
Calling it on $result results in the warning looking like it's coming
from the 'result' module rather than 'textextracts'.

Change-Id: I396409c5e1d09385d9b564ca8cf854c899bb1ba4
2014-11-07 15:32:49 -05: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
Brad Jorsch 9207edfa81 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:37:38 -04:00
jenkins-bot f18baebe98 Merge "Use Config instead of globals" 2014-09-03 21:19:23 +00:00
addshore e8d04b46da Remove use of deprecated getPossibleErrors (since 1.24)
Change-Id: I1401a832fda82b28fa2a942460b61428ec96d570
2014-08-29 12:17:11 +01: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
Max Semenik 484b27ba81 Add variant to cache key
Bug: 66621
Change-Id: I8d80dbbb35fa720a778fbf2b6a0248e141900522
2014-06-24 14:00:59 -07:00
Translation updater bot 18f7117350 Localisation updates from https://translatewiki.net.
Change-Id: I78cab3022a4a04286d66dcaf13efee39fbe56844
2014-05-28 19:35:25 +00:00
Waldir Pimenta edc9fbe08b add .noprint and ul.gallery to ignored elements
Change-Id: I6bb782d45853bb9e0682a4ab25556b3de70addce
2014-05-11 03:20:51 +02:00
jenkins-bot a316a72e24 Merge "Unclusterfuck per-char and -sentence trimming from ApiQueryExtracts" 2014-05-02 01:07:40 +00:00
Max Semenik 3183492361 Unclusterfuck per-char and -sentence trimming from ApiQueryExtracts
Add tests. Comment out things that need to be fixed.

Change-Id: I21e1e3d99959147d89e6390c0572d2e16d6a3cbc
2014-05-01 17:39:10 -07:00
jenkins-bot 0436370bfe Merge "Reorganize blacklisted selectors" 2014-05-01 23:30:32 +00:00
Translation updater bot e81adbb02a Localisation updates from https://translatewiki.net.
Change-Id: Ib4fabf671846b19f302fd30e6a81ed1b819563ac
2014-05-01 20:21:32 +00:00
Translation updater bot ff000eb698 Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: If3539ae99be2f9d97100331377bcb3c80aec6918
2014-04-22 13:48:42 +00: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
Translation updater bot c60a1eaf0c Localisation updates from https://translatewiki.net.
Change-Id: I9447cdd393cf50453b02e7a7243f3795233a101c
2014-04-16 17:02:29 +00:00
grunny c56742eb71 Fix typo in API doc
Change-Id: I9db1acda6cf6c3d72d8fce128349cc27d105ca62
2014-04-06 19:16:17 +10:00
Translation updater bot 35579de0aa Localisation updates from https://translatewiki.net.
Change-Id: Ic67832a01e3f0b338fe58dcbffb0ad2e1988e2d8
2014-04-01 19:52:12 +00:00
Max Semenik 836d957c8f Merge "Make results cacheable" 2014-03-31 22:26:20 +00:00
Max Semenik 9f2accbcce Make results cacheable
Change-Id: Ibae883e2bf76d0dc0b6d99d3fbfa5e34050a6789
2014-04-01 02:15:59 +04:00
Translation updater bot 0f451b14b3 Localisation updates from https://translatewiki.net.
Change-Id: I5e9dea65e850358523cd7653c21b88beb057029c
2014-03-29 21:19:39 +00: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
Translation updater bot 522836886f Localisation updates from https://translatewiki.net.
Change-Id: I68a4b588c29deb2829267a0e57f77598560ffb35
2014-03-15 20:12:03 +00:00
Translation updater bot ef67a32541 Localisation updates from https://translatewiki.net.
Change-Id: Ie03110999faca083b591d311b3b5c07a4fd74ea0
2014-03-07 21:45:34 +00:00
Translation updater bot 5579ce50fa Localisation updates from https://translatewiki.net.
Change-Id: Iac1d22fd34a9e1598fa9a40d80f7eb5505363853
2014-02-21 22:32:21 +00:00
Translation updater bot f36158e53b Localisation updates from https://translatewiki.net.
Change-Id: I8a1924b72fb024a8761ee387dd7772a491014f86
2014-02-20 21:07:10 +00:00
Translation updater bot d9b20d21b9 Localisation updates from https://translatewiki.net.
Change-Id: Ia8c1952b32f60b1a5954ca0770581554e65f9085
2014-02-04 21:06:12 +00:00
Translation updater bot 3635348bb8 Localisation updates from https://translatewiki.net.
Change-Id: Id65052a2e8128f9a5113a040f315357c2f01219e
2014-01-28 21:23:48 +00:00
Reedy c8cf680a51 Add COPYING
Change-Id: I184693298647086fdd4c3af6ab527f31a219a7e7
2014-01-22 21:33:49 +00:00
Translation updater bot 74c944e6a4 Localisation updates from https://translatewiki.net.
Change-Id: I0b618fdba149a64994567c3853fcfa4ca9cb3fef
2014-01-19 20:20:26 +00:00
Translation updater bot 542f114862 Localisation updates from https://translatewiki.net.
Change-Id: I690347d3c4b6bb248087e8602cac57e724803cf5
2014-01-18 21:17:05 +00:00
Max Semenik f247f7475d Update help URL
Change-Id: I848dbed83e060fd4624ff9a1ba5674b37784df11
2014-01-15 02:51:08 +04:00
Translation updater bot 19e43f7ab0 Localisation updates from https://translatewiki.net.
Change-Id: I7718a7bd53997ab6d67445cb4de56dc84470bdb4
2014-01-14 20:52:37 +00:00
Translation updater bot 6a5d3f77ee Localisation updates from https://translatewiki.net.
Change-Id: Ia99cd44aebf73c57dac997155b6864f689af55b5
2014-01-07 20:46:39 +00:00
Translation updater bot 26583210cf Localisation updates from https://translatewiki.net.
Change-Id: If7a9d05e0853de6fa78c04cc24caee834c356d8e
2014-01-06 20:08:02 +00:00
Translation updater bot b8ee12ebe1 Localisation updates from https://translatewiki.net.
Change-Id: I144f7ee829081f860704ff190dcfcdb6b2d05a17
2014-01-05 20:13:35 +00:00
Translation updater bot 09ee62f37e Localisation updates from https://translatewiki.net.
Change-Id: I3dc3565d60f83cacbad2b4da2e0de1abf6a5116a
2014-01-01 20:00:15 +00:00
Translation updater bot 2ed6b7d094 Localisation updates from https://translatewiki.net.
Change-Id: I2d5f15a166cc7c48e9133fdbe41496e5ab24d780
2013-12-30 20:01:22 +00:00
Translation updater bot d8ee04765e Localisation updates from https://translatewiki.net.
Change-Id: Icb8d4716ed124609bd9c3ac1ccb926de69ec88e0
2013-12-23 20:51:00 +00:00
Translation updater bot 138f4242be Localisation updates from https://translatewiki.net.
Change-Id: Id64f26972838bec05c4d3549a2086ed351824dd1
2013-12-22 20:32:22 +00:00
Translation updater bot 0ebdfdc9f3 Localisation updates from https://translatewiki.net.
Change-Id: Ib1d23a0cf2db6e739d8b8c91e9f44f5b98412182
2013-12-21 20:41:53 +00:00
raymond eda91adb61 Add newline at end of file to unbreak translatewiki.net scripts
Change-Id: I617c511c847761a694a7aebe74e5d66f3f3a4e10
2013-12-21 21:08:52 +01:00
Max Semenik 8ef89a82ea Initial conversion of prop=extracts from MobileFrontend
Change-Id: I8a02f38554f6f06a00e6229889f7545f8ee8976a
2013-12-18 03:40:03 +04:00