filter MDL-19796 Upgraded deprecated function calls

This commit is contained in:
samhemelryk
2009-09-30 07:03:52 +00:00
parent 597887b42f
commit e25b7ded61
7 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -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');
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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']);
+1
View File
@@ -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';