Note that the sensitive information is still in the TextExtracts
memcached, so this requires security review (and either eviction
or a cache key change) before enabling other content models.
Bug: T107170
Change-Id: I57642e84db39d585c5b04453f86102b10fb69cdf
(cherry picked from commit f5c114c571)
Make the code compatible with both the old name (WikiPage::isParserCacheUsed)
and new name (WikiPage::shouldCheckParserCache).
Change-Id: If5d5da8eab132eb6d60f7141884ed2aeaa46e444
PS25 and later changed things around a fair bit, meaning the previous update
needs some further updating. In some cases additional cleanup is also necessary
for future core API changes.
Bug: T96595
Change-Id: I1573e523cf3c945fca95d8d2db002f5abcdbb29d
In the spirit of escaping as close to the output as possible, ensure
that the number of sentences is an integer before using it in a regex.
Just in case someone changes the api's param definition.
Change-Id: I406d6ed365ecd53bd8f56a09218a7e1403fe0fa9
Change I7b37295e for mediawiki/core deprecates several methods, and more
importantly changes the format of the data returned from
ApiResult::getData(). This change should handle these differences in a
backwards-compatible manner.
Change-Id: I7b37295e8862b188d1f3b0cd07f66ac34629678e
... so that per-span information for different languages, i.e. lang and
dir attributes aren't lost.
Bug: T59582
Change-Id: If1b04714fdc0f4d581ddb858d8d53f6f340dc10b
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
Calling it on $result results in the warning looking like it's coming
from the 'result' module rather than 'textextracts'.
Change-Id: I396409c5e1d09385d9b564ca8cf854c899bb1ba4
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
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
Converts the API module to use new factory function introduced
in Ieb8549, allowing for proper dependency injection of a Config
instance.
Change-Id: I78cdb5098a6c816f84b3efffeaadf789ca822df7
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.
Change-Id: If3539ae99be2f9d97100331377bcb3c80aec6918
* 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