Commit a37ad4a0 authored by Alexia's avatar Alexia

Fix for PDF tag in templates.

parent eb3c15ee
......@@ -38,6 +38,10 @@ class PDFEmbed {
global $pdfEmbed, $wgRequest, $wgUser;
$parser->disableCache();
if (strstr($file, '{{{') !== false) {
$file = $parser->recursiveTagParse($file, $frame);
}
if ($wgRequest->getVal('action') == 'edit' || $wgRequest->getVal('action') == 'submit') {
$user = $wgUser;
} else {
......
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