aboutsummaryrefslogtreecommitdiff
path: root/displayformula.php
diff options
context:
space:
mode:
Diffstat (limited to 'displayformula.php')
-rw-r--r--displayformula.php8
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>