Fix content-type for glossary.js.php

pull/2874/head
Angel Fernando Quiroz Campos 7 years ago
parent 510a7dd7cc
commit 084048aba2
  1. 5
      main/glossary/glossary.js.php

@ -3,9 +3,11 @@
require_once __DIR__.'/../inc/global.inc.php';
header('Content-type: application/x-javascript');
$origin = api_get_origin();
$tpl = new Template();
$tpl = new Template('', false, false, false, true, false, false);
$glossaryExtraTools = api_get_setting('show_glossary_in_extra_tools');
@ -24,6 +26,5 @@ if ($showGlossary) {
$addReady = isset($_GET['add_ready']) ? true : false;
$tpl->assign('add_ready', $addReady);
$contentTemplate = $tpl->get_template($templateName);
header('Content-type: application/x-javascript');
$tpl->display($contentTemplate);
}

Loading…
Cancel
Save