Commit graph

5 commits

Author SHA1 Message Date
TChin
8371b19662 Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs
Bug: T291288
Change-Id: I1789bccc276ec7c01928775f9bcb8ff301af54ff
2021-11-29 14:23:26 -05:00
libraryupgrader
5357695270 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
  The following sniffs now pass and were enabled:
  * Generic.ControlStructures.InlineControlStructure
  * MediaWiki.PHPUnit.AssertCount.NotUsed

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)

Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
2021-07-22 03:36:05 +00:00
Umherirrender
8de3b7d324 Use static closures where safe to use
This is micro-optimization of closure code to avoid binding the closure
to $this where it is not needed.

Created by I25a17fb22b6b669e817317a0f45051ae9c608208

Change-Id: I0ffc6200f6c6693d78a3151cb8cea7dce7c21653
2021-02-11 00:13:52 +00:00
Kosta Harlan
d51ed7c3d2 MultiTitleFilter: Use prefixed text for form display
This allows us to distinguish between "Foo" and "User:Foo" in the UI.

Follows-Up: Ia0ddf78646ec4c8ae0b84b6d5b46ef5e51c8e8c1

Change-Id: I960cbd566e444380a253bde364bc9da7e2975823
2020-06-02 12:23:35 +00:00
Kosta Harlan
7880815b4d Add MultiTitleFilter class
Add a new preference filter for use with HTMLTitlesMultiSelectField, to simplify
the process of saving article text as IDs in user preferences, and reading those
IDs back to text for presentation in the form.

Example usage in the Echo extension: I67f751eae5fdc5bccff7fe3047227d432c1cb8d5

Change-Id: Ia0ddf78646ec4c8ae0b84b6d5b46ef5e51c8e8c1
2020-04-28 14:06:51 +00:00