Commit e99e9c5c authored by lpc921's avatar lpc921

Update PDFEmbed.hooks.php

broken down the long line
parent 68b0aaa3
......@@ -83,7 +83,15 @@ class PDFEmbed {
* @return string HTML object.
*/
static private function embed(File $file, $width, $height, $page) {
return "<object width='{$width}' height='{$height}' data='".$file->getFullUrl()."#page={$page}"."' type='application/pdf'>".wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->plain()."<param name='page' value='$page' />"."</object>";
return Html::rawElement('object', [
'width' => $width,
'height' => $height,
'data' => $file->getFullUrl().'#page='.$page,
'type' => 'application/pdf'
],
wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->escaped()
."<param name='page' value='$page' />"
);
}
/**
......
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