Commit 7607dc7f authored by Alexia's avatar Alexia

Version bump, missing language string.

parent ddd2e6e6
......@@ -62,8 +62,8 @@ class PDFEmbed {
$file = wfFindFile(Title::newFromText($file));
$width = ($args['width'] > 0 ? intval($args['width']) : intval($pdfEmbed['width']));
$height = ($args['height'] > 0 ? intval($args['height']) : intval($pdfEmbed['height']));
$width = (array_key_exists('width', $args) ? intval($args['width']) : intval($pdfEmbed['width']));
$height = (array_key_exists('height', $args) ? intval($args['height']) : intval($pdfEmbed['height']));
if ($file !== false) {
return self::embed($file, $width, $height);
......
......@@ -13,21 +13,21 @@
/******************************************/
/* Credits */
/******************************************/
$credits = array(
$credits = [
'path' => __FILE__,
'name' => 'PDFEmbed',
'author' => 'Alexia E. Smith',
'url' => 'http://www.mediawiki.org/wiki/Extension:PDFEmbed',
'descriptionmsg' => 'pdfembed_description',
'version' => '1.0'
);
'version' => '1.1'
];
$wgExtensionCredits['parserhook'][] = $credits;
/******************************************/
/* Language Strings, Page Aliases, Hooks */
/******************************************/
$extDir = dirname(__FILE__);
$extDir = __DIR__;
$wgAvailableRights[] = 'embed_pdf';
......
......@@ -6,6 +6,7 @@
"pdfembed_description": "Media handler extension for PDF files.",
"embed_pdf_no_permission": "You do not have permission to embed PDF files.",
"embed_pdf_blank_file": "The URL or file path given to embed a PDF is blank.",
"embed_pdf_invalid_file": "The URL or file path given does not exist.",
"embed_pdf_invalid_user": "An invalid user was specified to permission testing to embed this PDF.",
"pdf_not_supported": "The PDF file did not load properly or your web browser does not support viewing PDF files. Download <a href=\"$1\">$2</a> directly to your device."
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment