Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
-
Fix Version/s: None
-
Component/s: Add a project here
-
Labels:None
-
Difficulty:Moderate
-
Affected Branches:MOODLE_19_STABLE
Description
Wimba Liveclassroom lang file for en_utf8 has some serious coding flaws. It includes non-alphanumeric chars in the $srting array indexes which result in Moodle site failure if edited.
For example:
> grep mic lang/en_utf8/liveclassroom.php
$string['Enable Student\'s microphones at presentation start'] = "Enable Student's microphones at presentation start";
Editing ANY string in that file through Moodle's local language editing capacity results in that line changing to:
$string['Enable Student's microphones at presentation start'] = "Enable Student's microphones at presentation start";
Which breaks the entire Moodle site with:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /clients/hcls/lang/en_utf8_local/liveclassroom.php on line 13
NOTE: I don't know if Wimba even peeks in Moodle Tracker for this sort of thing but I figured it can't hurt.
Thanks! Seeya...
Actually, this can be fixed within Moodle core by changing the code that saves local lang strings to escape out single quotes. When I have a patch for that I'll post it.