From: tjhunt Date: Tue, 30 Jan 2007 11:09:32 +0000 (+0000) Subject: Get the alt text for the question type icon in a better way. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a95cd8a650edd5ae64ebd42e88bd12b267eea679;p=moodle.git Get the alt text for the question type icon in a better way. --- diff --git a/lib/questionlib.php b/lib/questionlib.php index bdb7b98fbf..6d9fec8b8e 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1195,11 +1195,9 @@ function question_apply_penalty_and_timelimit(&$question, &$state, $attempt, $cm * @param boolean $return If true the functions returns the link as a string */ function print_question_icon($question, $editlink=true, $return = false) { -// returns a question icon - global $QTYPES, $CFG; - $namestr = get_string($question->qtype, 'quiz'); + $namestr = $QTYPES[$question->qtype]->menu_name(); $html = ''.
             $namestr.'';