From e25b7ded61e28080fc622da2e0091f90500f2584 Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Wed, 30 Sep 2009 07:03:52 +0000 Subject: [PATCH] filter MDL-19796 Upgraded deprecated function calls --- filter/algebra/algebradebug.php | 4 ++-- filter/algebra/pix.php | 2 +- filter/manage.php | 5 ++++- filter/tex/pix.php | 2 +- filter/tex/texdebug.php | 2 +- filter/tex/texed.php | 2 +- lang/en_utf8/error.php | 1 + 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/filter/algebra/algebradebug.php b/filter/algebra/algebradebug.php index 7a9b9b6c01..7635f8c076 100644 --- a/filter/algebra/algebradebug.php +++ b/filter/algebra/algebradebug.php @@ -1,4 +1,4 @@ -libdir.'/filelib.php'); diff --git a/filter/algebra/pix.php b/filter/algebra/pix.php index 7417bdb154..f65c2ecab1 100644 --- a/filter/algebra/pix.php +++ b/filter/algebra/pix.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 diff --git a/filter/manage.php b/filter/manage.php index d07b98098a..a8e0e5615c 100644 --- a/filter/manage.php +++ b/filter/manage.php @@ -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 '

' . get_string('nofiltersenabled', 'filters') . "

\n"; diff --git a/filter/tex/pix.php b/filter/tex/pix.php index 1628abd2b2..efb6eb2b89 100644 --- a/filter/tex/pix.php +++ b/filter/tex/pix.php @@ -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 diff --git a/filter/tex/texdebug.php b/filter/tex/texdebug.php index a6a5db9f3c..f5f542b06f 100644 --- a/filter/tex/texdebug.php +++ b/filter/tex/texdebug.php @@ -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'); diff --git a/filter/tex/texed.php b/filter/tex/texed.php index d0759256dc..128617a9c1 100644 --- a/filter/tex/texed.php +++ b/filter/tex/texed.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']); diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php index fb03b892a0..e19b073906 100644 --- a/lang/en_utf8/error.php +++ b/lang/en_utf8/error.php @@ -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'; -- 2.39.5