Documents: Move injected js inside <head>

pull/3959/head
Julio 4 years ago
parent ff947a4919
commit 435db6bd56
  1. 3
      src/CoreBundle/Controller/ResourceController.php

@ -634,7 +634,8 @@ class ResourceController extends AbstractResourceController implements CourseCon
'@ChamiloCore/Layout/document.html.twig',
['breadcrumb' => '', 'user_json' => $userJson]
);
$content = str_replace('</html>', $js.'</html>', $content);
// Insert inside the head tag.
$content = str_replace('</head>', $js.'</head>', $content);
}
}

Loading…
Cancel
Save