mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-12-18 02:51:00 +00:00
Fix PhanTypeMismatchArgumentInternal error
Change-Id: I46fa1de4fa55add4e19db15d39233ec3d73eab5e
This commit is contained in:
parent
0a049abdcd
commit
484c07ca62
|
@ -94,7 +94,7 @@ class PdfHandler extends ImageHandler {
|
|||
* @return array|bool
|
||||
*/
|
||||
function parseParamString( $str ) {
|
||||
$m = false;
|
||||
$m = [];
|
||||
|
||||
if ( preg_match( '/^page(\d+)-(\d+)px$/', $str, $m ) ) {
|
||||
return [ 'width' => $m[2], 'page' => $m[1] ];
|
||||
|
|
Loading…
Reference in a new issue