Feature #2132 - Adding code for loading the file ASCIIMathML.js (2).

skala
Ivan Tcholakov 14 years ago
parent 76607ca08c
commit 9e9353a9b5
  1. 2
      main/inc/header.inc.php
  2. 7
      main/inc/reduced_header.inc.php

@ -33,7 +33,7 @@ if ($navigator_info['name'] == 'Internet Explorer' && $navigator_info['version'
}
// Include here the script ASCIIMathML.js if you want to show mathematical formulas and graphics
// not only in the "Documents" tool, but elsewhere in the system. This setting affects the
// not only in the "Documents" tool, but elsewhere in the system. This setting is related to the
// online editor's plugins 'asciimath' and 'asciisvg'.
if (api_get_setting('include_asciimathml_script') == 'true') {
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'asciimath/ASCIIMathML.js" type="text/javascript"></script>';

@ -17,6 +17,13 @@
header('Content-Type: text/html; charset='.api_get_system_encoding());
// Include here the script ASCIIMathML.js if you want to show mathematical formulas and graphics
// not only in the "Documents" tool, but elsewhere in the system. This setting is related to the
// online editor's plugins 'asciimath' and 'asciisvg'.
if (api_get_setting('include_asciimathml_script') == 'true') {
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'asciimath/ASCIIMathML.js" type="text/javascript"></script>';
}
if (isset($httpHeadXtra) && $httpHeadXtra) {
foreach ($httpHeadXtra as & $thisHttpHead) {
header($thisHttpHead);

Loading…
Cancel
Save