diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /extensions/PdfHandler/PdfHandler.image.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'extensions/PdfHandler/PdfHandler.image.php')
-rw-r--r-- | extensions/PdfHandler/PdfHandler.image.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/PdfHandler/PdfHandler.image.php b/extensions/PdfHandler/PdfHandler.image.php index 49da7f4e..ea016e34 100644 --- a/extensions/PdfHandler/PdfHandler.image.php +++ b/extensions/PdfHandler/PdfHandler.image.php @@ -19,6 +19,8 @@ * http://www.gnu.org/copyleft/gpl.html */ +use MediaWiki\Logger\LoggerFactory; + /** * inspired by djvuimage from Brion Vibber * modified and written by xarax @@ -295,7 +297,7 @@ class PdfImage { // is present (Almost always is present) // @todo: This only handles generic xmp properties. Would be improved // by handling pdf xmp properties (pdf and pdfx) via XMPInfo hook. - $xmp = new XMPReader(); + $xmp = new XMPReader( LoggerFactory::getInstance( 'XMP' ) ); $xmp->parse( $data['xmp'] ); $xmpRes = $xmp->getResults(); foreach ( $xmpRes as $type => $xmpSection ) { |