From 57f1b9149786baaa1ebe0a72a05b3c784b6190fc Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 7 Oct 2006 20:47:54 +0000 Subject: [PATCH] fixed some incorrect strtolower() calls that were breaking non ascii languages MDL-6135 --- backup/backup_form.html | 4 ++-- backup/backup_scheduled.php | 6 +++--- backup/restorelib.php | 2 +- course/edit.html | 2 +- enrol/manual/enrol.html | 2 +- lib/filterlib.php | 4 ++-- lib/questionlib.php | 6 +++--- lib/weblib.php | 2 +- mod/forum/mod.html | 2 +- mod/quiz/config.html | 4 ++-- mod/quiz/mod.html | 4 ++-- user/edit.php | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-) diff --git a/backup/backup_form.html b/backup/backup_form.html index 179fe986a81..9d6bfd9aa88 100644 --- a/backup/backup_form.html +++ b/backup/backup_form.html @@ -284,7 +284,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { //Calculate the backup word //Take off some characters in the filename !! $takeoff = array(" ", ":", "/", "\\", "|"); - $backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename"))); + $backup_word = str_replace($takeoff,"_",moodle_strtolower(get_string("backupfilename"))); //If non-translated, use "backup" if (substr($backup_word,0,1) == "[") { $backup_word= "backup"; @@ -307,7 +307,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { //The backup word $backup_name = $backup_word."-"; //The shortname - $backup_name .= strtolower($backup_shortname)."-"; + $backup_name .= moodle_strtolower($backup_shortname)."-"; //The date format $backup_name .= userdate(time(),$backup_date_format,99,false); //The extension diff --git a/backup/backup_scheduled.php b/backup/backup_scheduled.php index a695c50ffb8..5bb9c5a36a2 100644 --- a/backup/backup_scheduled.php +++ b/backup/backup_scheduled.php @@ -437,7 +437,7 @@ function schedule_backup_course_configure($course,$starttime = 0) { //Calculate the backup word //Take off some characters in the filename !! $takeoff = array(" ", ":", "/", "\\", "|"); - $backup_word = str_replace($takeoff,"_",strtolower(get_string("backupfilename"))); + $backup_word = str_replace($takeoff,"_",moodle_strtolower(get_string("backupfilename"))); //If non-translated, use "backup" if (substr($backup_word,0,1) == "[") { $backup_word= "backup"; @@ -460,7 +460,7 @@ function schedule_backup_course_configure($course,$starttime = 0) { //The backup word $backup_name = $backup_word."-"; //The shortname - $backup_name .= strtolower($backup_shortname)."-"; + $backup_name .= moodle_strtolower($backup_shortname)."-"; //The date format $backup_name .= userdate(time(),$backup_date_format,99,false); //The extension @@ -471,7 +471,7 @@ function schedule_backup_course_configure($course,$starttime = 0) { //Calculate the string to match the keep preference $keep_name = $backup_word."-"; //The shortname - $keep_name .= strtolower($backup_shortname)."-"; + $keep_name .= moodle_strtolower($backup_shortname)."-"; //And finally, clean everything $keep_name = clean_filename($keep_name); diff --git a/backup/restorelib.php b/backup/restorelib.php index 988e40ed1e1..f50172269b2 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1820,7 +1820,7 @@ //Process contacts if ($contactcount) { if (!defined('RESTORE_SILENTLY')) { - echo '
  • '.strtolower(get_string('contacts','message')).'
  • '; + echo '
  • '.moodle_strtolower(get_string('contacts','message')).'
  • '; } $counter = 0; while ($counter < $contactcount) { diff --git a/course/edit.html b/course/edit.html index 7b3abc8a9d6..766c3ef49aa 100644 --- a/course/edit.html +++ b/course/edit.html @@ -432,7 +432,7 @@ $options[0] = get_string("no"); $options[1] = get_string("yes"); choose_from_menu($options,"restrictmodules",$form->restrictmodules,"","togglemodules(this.selectedIndex);",""); -?>     +?>