-<?PHP // $Id$
+<?php
// This function fetches math. images from the data directory
// If not, it obtains the corresponding TeX expression from the cache_tex db table
// and uses mimeTeX to create the image file
require_once("../../config.php");
if (!filter_is_enabled('filter/algebra')) {
- error ('Filter not enabled!');
+ print_error('filternotenabled');
}
require_once($CFG->libdir.'/filelib.php');
require_once('../../config.php');
if (!filter_is_enabled('filter/algebra')) {
- error ('Filter not enabled!');
+ print_error('filternotenabled');
}
// disable moodle specific debug messages
}
/// Print heading.
-print_heading_with_help($title, 'localfiltersettings');
+$helpicon = new moodle_help_icon();
+$helpicon->text = $title;
+$helpicon->page = 'localfiltersettings';
+echo $OUTPUT->heading_with_help($helpicon);
if (empty($availablefilters)) {
echo '<p class="centerpara">' . get_string('nofiltersenabled', 'filters') . "</p>\n";
require_once('../../config.php');
if (!filter_is_enabled('filter/tex')) {
- error ('Filter not enabled!');
+ print_error('filternotenabled');
}
// disable moodle specific debug messages
require_once("../../config.php");
if (!filter_is_enabled('filter/tex')) {
- error ('Filter not enabled!');
+ print_error('filternotenabled');
}
require_once($CFG->libdir.'/filelib.php');
require_once($CFG->dirroot.'/filter/tex/lib.php');
if (!filter_is_enabled('filter/tex')) {
- error ('Filter not enabled!');
+ print_error('filternotenabled');
}
$texexp = urldecode($_SERVER['QUERY_STRING']);
$string['filterdoesnothavelocalconfig'] = 'The filter $a does not allow local configuration.';
$string['filternotinstalled'] = 'Filter $a is not currently installed';
$string['filternotactive'] = 'Filter $a is not currently active';
+$string['filternotenabled'] = 'Filter not enabled!';
$string['forumblockingtoomanyposts'] = 'You have exceeded the posting threshold set for this forum';
$string['hackdetected'] = 'Hack attack detected!';
$string['headersent'] = 'Headers already sent';