From b28bc60fdd23b362563e64a7a53800245844fb99 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Wed, 17 Apr 2013 13:49:35 +0800 Subject: [PATCH] MDL-32898 Final deprecation of moodle_strtolower() --- lib/deprecatedlib.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 8022c44df6f..825f048113c 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -2838,24 +2838,10 @@ function show_event($event) { } /** - * Converts string to lowercase using most compatible function available. - * * @deprecated Use textlib::strtolower($text) instead. - * - * @param string $string The string to convert to all lowercase characters. - * @param string $encoding The encoding on the string. - * @return string */ function moodle_strtolower($string, $encoding='') { - - debugging('moodle_strtolower() is deprecated. Please use textlib::strtolower() instead.', DEBUG_DEVELOPER); - - //If not specified use utf8 - if (empty($encoding)) { - $encoding = 'UTF-8'; - } - //Use text services - return textlib::strtolower($string, $encoding); + throw new coding_exception('moodle_strtolower() cannot be used any more. Please use textlib::strtolower() instead.'); } /**