]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6751 Admin page for question types. This does the bulk of the work:
authortjhunt <tjhunt>
Tue, 9 Sep 2008 08:43:40 +0000 (08:43 +0000)
committertjhunt <tjhunt>
Tue, 9 Sep 2008 08:43:40 +0000 (08:43 +0000)
MDL-16407 Add to admin/settings/plugins.php to link to the new manage page, and pull in any qtype settings pages
MDL-16408 Write the manage question types page, to display the table of installed types

lib/questionlib.php

index 30bc1744f2c379b91c90bb06fca04b22cb5b09ef..5bafa6166e775cb034cb628350ceb1bef6d99cd1 100644 (file)
@@ -1689,7 +1689,7 @@ function print_question_icon($question, $return = false) {
     global $QTYPES, $CFG;
 
     if (array_key_exists($question->qtype, $QTYPES)) {
-        $namestr = $QTYPES[$question->qtype]->menu_name();
+        $namestr = $QTYPES[$question->qtype]->local_name();
     } else {
         $namestr = 'missingtype';
     }