Commit 447e7672 authored by Xennis's avatar Xennis

Hack to link HTML object to the wiki file page of the PDF file

parent 7607dc7f
......@@ -82,7 +82,7 @@ class PDFEmbed {
* @return string HTML object.
*/
static private function embed(File $file, $width, $height) {
return "<object width='{$width}' height='{$height}' data='".$file->getFullUrl()."' type='application/pdf'>".wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->plain()."</object>";
return "<a href='/wiki/File:".$file->getName()."' title='File:".$file->getName()."' style='display: inline-block'><object width='{$width}' height='{$height}' data='".$file->getFullUrl()."' type='application/pdf' style='pointer-events: none'>".wfMessage('pdf_not_supported', $file->getFullUrl(), $file->getName())->plain()."</object></a>";
}
/**
......
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