diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 23:28:54 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 23:28:54 +0100 |
commit | 8f079b654779612dfc9aae041245d9f6c60270ad (patch) | |
tree | c4e11a7dc2c93126a0665cfb5fe784c8b88880bc /displayformula.php | |
parent | 1f8c26f25b52d410d126eeeb30f61012094beaaa (diff) |
Fix styles.css
Diffstat (limited to 'displayformula.php')
-rw-r--r-- | displayformula.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/displayformula.php b/displayformula.php index 58723f1..8c4cf8c 100644 --- a/displayformula.php +++ b/displayformula.php @@ -22,14 +22,16 @@ /** * Script which converts the given formula text into LaTeX code and then - * displays the appropriate image file. It relies on the LaTeX filter to - * be present. + * displays the appropriate image file. It relies on the LaTeX filter or + * the mathJax filter to be present. */ require_once('../../../config.php'); require_once("$CFG->dirroot/question/type/algebra/parser.php"); global $PAGE, $CFG; +require_login(); + $p = new qtype_algebra_parser; try { $query = urldecode($_SERVER['QUERY_STRING']); @@ -74,7 +76,7 @@ if (!empty($CFG->additionalhtmlhead) && stripos($CFG->additionalhtmlhead, 'MathJ } ?> </head> - <body bgcolor="#FFFFFF"> + <body bgcolor="#ffffff"> <?php echo $text; ?> </body> </html> |