From: arborrow Date: Sun, 21 Jun 2009 04:29:37 +0000 (+0000) Subject: MDL-19950 - check for format type name in qformat if not found in quiz.php lang file X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b0ea27b441d4eaa38dce08a5a06cb918f3ad5cf6;p=moodle.git MDL-19950 - check for format type name in qformat if not found in quiz.php lang file --- diff --git a/lib/questionlib.php b/lib/questionlib.php index 0114058ad8..2b7b547e75 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -2613,7 +2613,10 @@ function get_import_export_formats( $type ) { if ($provided) { $formatname = get_string($fileformat, 'quiz'); if ($formatname == "[[$fileformat]]") { - $formatname = $fileformat; // Just use the raw folder name + $formatname = get_string($fileformat, 'qformat_'.$fileformat); + if ($formatname == "[[$fileformat]]") { + $formatname = $fileformat; // Just use the raw folder name + } } $fileformatnames[$fileformat] = $formatname; }