Commit graph

15 commits

Author SHA1 Message Date
James D. Forrester d12466860c build: Update MediaWiki requirement to 1.39.0
Change-Id: Ic04c31fdea3a6140c9a024c19bd7528949c14c5a
2023-03-14 18:01:19 +00:00
Umherirrender f07840d997 Require MediaWiki 1.37 for File::getMetadataItems
Used File::getMetadataItems is part of
I039785d5b6439d71dcc21dcb972177dba5c3a67d

Follow-Up: I30d0b0009fcb11c14d14663bd1f2c2a3dfac55d6
Change-Id: Iddacb31efc9ec9da3ba87c7c8cdac04a36a1af39
2022-01-01 16:08:24 +01:00
Kunal Mehta b253dc04c4 Port retrieveMetaData to BoxedCommand
Combine all 3 shellouts into one script, retrieveMetaData.sh.

The script is executed by /bin/sh by default, it can be changed for
Windows users by setting $wgPdfHandlerShell.

pdftotext is a bit special since it's behavior varies based on the
program's exit code, so save that in a file so we can check it
independently of the overall exit status.

Bug: T289228
Change-Id: I29750bcc282bd5f9b8e2f79aa340869738ea5f5b
2021-09-20 10:28:27 -07:00
Kunal Mehta 2328f802b1 Move pdfhandler.messages module to extension.json
These messages have not changed since they were originally defined
in f4f87ceb (2015). Instead of using a hook to register the module
at runtime, put it in extension.json with a note next to the warning
configuration to keep the messages in sync.

Change-Id: I135bf1a9f2cd59926a40cc565e5c8a2a6f2483c0
2021-09-03 00:59:19 -07:00
Tim Starling 06fec68e08 Remove $wgPdfCreateThumbnailsInJobQueue
The feature is nonfunctional due to the page count always being zero
when the hook is called. The core feature $wgUploadThumbnailRenderMap
can be used as a replacement, after I add multipage support to it.

Bug: T284416
Change-Id: Id83a6a148f1ca12f1399b5e11951a9d80afb5c2d
2021-06-07 14:56:34 +10:00
Reedy 5f0b70972d Namespace extension
Change-Id: I1e80a32a71e4b15d38e1e91b866dbcca848f188c
2021-02-11 04:14:37 +00:00
Reedy bf7398e78e Convert to manifest_version 2
Bug: T252470
Change-Id: Id77e6c33af89e293c9d3440f2988acc1c35a9c7c
2020-05-12 02:04:08 +01:00
Umherirrender e0d1ad38f3 Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34

Change-Id: I5d2a2078755a63d6209aaa3d884c7f05718ee819
2020-03-14 14:46:27 +01:00
Kunal Mehta 57b8c36e38 Use librarized XMPReader class and minor cleanup
* Use ::isSupported() instead of checking for a specific function manually
* Remove mention of the XMPGetInfo hook, which was removed in 4feb2ac7f2224d

Depends-On: Ic9044bf3260d1a474a6c74844949602441ffc865
Change-Id: I4333d427a2039aaffb897a1f41504b74d60c3c8b
2018-05-31 19:49:15 -07:00
Kunal Mehta b89ddbca99 Move classes to includes/
Change-Id: I4ad03611ac644541903897276e8da37c3cfeed8b
2018-02-24 16:43:51 -08:00
Jayprakash12345 88b9041c41 Use SPDX 3.0 license identifier
Bug: T183858
Change-Id: I0f8893a160a284b7e200617390aa97774cf32efc
2018-01-29 06:03:23 +00:00
Reedy 77390a722b Use full path to binaries
Change-Id: Ide41d292b2ac4c6b448020db0109c0ed74bbc32e
2017-08-29 01:03:16 +01:00
addshore 96709fa847 Bump requirement to MW 1.25+
Due to If4044c38756f96d123cea105312a1863d8b17053

Change-Id: I28f703942e7f6aef15f65680b9f6c6c21f1c1741
2017-01-06 14:41:28 +00:00
Kunal Mehta 7fc987f78f Set manifest_version in extension.json
Bug: T100745
Change-Id: I5c8e04f210fb4980af3f90c437162e7b6b8c7915
2015-05-28 20:42:47 -07:00
Kunal Mehta 43901577ba Add extension.json, empty PHP entry point
Bug: T87957
Change-Id: I07ae99bb902990f3d757c9155d4168ba724d6e94
2015-05-04 12:28:31 -07:00