CosmicAlpha
48c4ccdde1
Fix PageImages compatibility with MediaWiki 1.43+ ( #136 )
2024-11-21 11:01:11 -07:00
CosmicAlpha
1a3a742bca
Fix PageImages compatibility with MediaWiki 1.42+ ( #120 )
2024-04-13 10:59:53 -06:00
CosmicAlpha
3aaa4fbea6
Remove the need to set $wgTidyConfig — always force no pwrap ( #116 )
...
Also fixes fatals on MediaWiki 1.42
2024-04-01 12:52:06 -06:00
alex4401
eb55d89e77
Output any image candidate markers generated by PageImages ( #105 )
...
* Output any image candidate markers generated by PageImages
wikimedia/mediawiki-extensions-PageImages#768464d changed how lead images are identified within PageImages, and since then an HTML comment in the form of `MW-PAGEIMAGES-CANDIDATE-$ID` is output by`doParserModifyImageHTML`, where the ID is an index in the extension output data's list of image metadata. These comments should find a way into the ParserOutput as the extension looks for those comments in a chosen document fragment when identifying qualifying candidates out of all images gathered through `onParserModifyImageHTML`.
This change does not affect compatibility with older PageImages (only the "new" hook's being called already).
* Default htmlAfter to null and update tests to expect it
Follow-up to my previous PageImages commit.
2023-07-24 11:13:33 -06:00
CosmicAlpha
a105effa60
Fix PageImages compatibility with MediaWiki 1.41+ ( #103 )
2023-07-01 19:01:21 -06:00
CosmicAlpha
98d4e900af
Fix PageImages compatibility with MediaWiki 1.40 ( #102 )
2023-07-01 11:44:34 -06:00
CosmicAlpha
e5ca418763
Add support for PHP 8.0 and PHP 8.1 ( #93 )
2023-01-13 14:08:52 -07:00
CosmicAlpha
574e709a45
Fixes for 1.39 ( #90 )
2022-12-06 17:19:24 -07:00
Lens0021
f8802fde1d
Fix all failed experimental CIs ( #74 )
2022-04-14 09:54:03 -06:00
Universal Omega
c901aa9be1
Fix PageImages support for MediaWiki 1.38+ ( #63 )
2022-03-11 13:50:45 -07:00
Universal Omega
44c3389d5a
Add use
statements ( #64 )
2022-03-11 13:35:51 -07:00
Universal Omega
b1910b5aec
Remove BlockLevelPass hack ( #40 )
2021-12-03 12:28:38 -07:00
Universal Omega
afb186ddb7
Enable PHPCS on all PHP and MW version tests and add more Phan tests ( #14 )
2021-09-12 15:07:34 -06:00
Universal Omega
0ec019afa5
Tidy: Don't pwrap ( #12 )
2021-09-12 11:43:20 -06:00
Universal Omega
42778958ab
Add PHPUnit tests ( #7 )
2021-09-11 17:07:07 -06:00
Universal Omega
a62b055cfe
Better CI tests ( #6 )
2021-09-11 12:55:27 -06:00
Universal Omega
79046437fd
Add CI ( #3 )
2021-09-09 20:52:19 -06:00
Universal Omega
f104d7bac0
Fix $text returning null within internalParse
2021-06-03 14:45:57 -06:00
Universal Omega
490cea5f47
Fix fatal
2021-06-02 11:55:12 -06:00
Universal Omega
e02ed1ed13
support MediaWikiServices::getInstance()->getTidy() on MW 1.36+
2021-05-27 20:55:53 -06:00
paladox
6de48189ba
Use $title->getDBkey() instead of just $title in addImage
...
This fixes:
ErrorException from line 756 of /srv/mediawiki/w/includes/parser/ParserOutput.php: PHP Warning: Illegal offset type
2019-09-01 12:02:06 +01:00
paladox
ee34c497a3
Fix addImage to use null instead of false for $file check
2019-07-20 17:12:47 +01:00
Luqgreg
7f1646b587
Fix unit tests
2018-12-28 01:00:33 +01:00
Luqgreg
3dcb820a08
Pass PI images to PageImages extension if available (Popups and og:image)
2018-12-26 23:36:08 +01:00
Luqgreg
f00a40c3b8
Code refactoring
2018-10-02 09:55:32 +02:00
Luqgreg
df30141d1f
Add cache to MediaWikiParserService
2018-08-27 14:23:23 +02:00
Luqgreg
638c9ef08b
MW 1.27 compatibilty fixes
2018-08-26 12:13:26 +02:00
Luqgreg
8a93653f0b
Force RemexHtml as Tidy driver and add an option to disable tidying
2018-08-18 18:40:36 +02:00
Luqgreg
767a1cc147
Use MWTidy in MediaWikiParserService
2018-08-16 15:59:49 +02:00
Luqgreg
8762225606
Code refactoring
2018-08-16 11:25:53 +02:00
Luqgreg
3a3fd95ec8
Major code cleanup ( #10 ) and bumping version to 0.2 🎉
2018-08-09 12:36:52 +02:00