Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0
-
None
-
MOODLE_20_STABLE
-
MOODLE_20_STABLE
-
Easy
Description
In 2.0, this produces debugging error:
$typetitle = get_string('type'.$type, 'assignment');
|
|
// hack to support pluggable assignment type titles
|
if ($typetitle === '[[type'.$type.']]') {
|
$typetitle = get_string('type'.$type, 'assignment_'.$type);
|
}
|
Should probably be replaced with:
if (get_string_manager()->string_exists('type'.$type, 'assignment')) {
|
$typetitle = get_string('type'.$type, 'assignment');
|
} else {
|
$typetitle = get_string('type'.$type, 'assignment_'.$type);
|
}
|
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-16796 Assignment plugins is not completely plugable
-
- Closed
-