filter MDL-19796 Upgraded deprecated function calls
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?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
|
||||
@@ -8,7 +8,7 @@
|
||||
require_once("../../config.php");
|
||||
|
||||
if (!filter_is_enabled('filter/algebra')) {
|
||||
error ('Filter not enabled!');
|
||||
print_error('filternotenabled');
|
||||
}
|
||||
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
require_once('../../config.php');
|
||||
|
||||
if (!filter_is_enabled('filter/algebra')) {
|
||||
error ('Filter not enabled!');
|
||||
print_error('filternotenabled');
|
||||
}
|
||||
|
||||
// disable moodle specific debug messages
|
||||
|
||||
+4
-1
@@ -125,7 +125,10 @@ if ($context->contextlevel == CONTEXT_COURSE and $context->instanceid == SITEID)
|
||||
}
|
||||
|
||||
/// 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";
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ define('NO_MOODLE_COOKIES', true); // Because it interferes with caching
|
||||
require_once('../../config.php');
|
||||
|
||||
if (!filter_is_enabled('filter/tex')) {
|
||||
error ('Filter not enabled!');
|
||||
print_error('filternotenabled');
|
||||
}
|
||||
|
||||
// disable moodle specific debug messages
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
require_once("../../config.php");
|
||||
|
||||
if (!filter_is_enabled('filter/tex')) {
|
||||
error ('Filter not enabled!');
|
||||
print_error('filternotenabled');
|
||||
}
|
||||
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
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']);
|
||||
|
||||
@@ -208,6 +208,7 @@ $string['filemismatch'] = 'Non-core file name mismatch. The file \"$a->current\"
|
||||
$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';
|
||||
|
||||
Reference in New Issue
Block a user