]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19950 - check for format type name in qformat if not found in quiz.php lang file
authorarborrow <arborrow>
Sun, 21 Jun 2009 04:29:37 +0000 (04:29 +0000)
committerarborrow <arborrow>
Sun, 21 Jun 2009 04:29:37 +0000 (04:29 +0000)
lib/questionlib.php

index 0114058ad819df59e83e4a596021f87f497b1065..2b7b547e75d4473f30842c3ab4c24f096d80cd73 100644 (file)
@@ -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;
         }