From a95cd8a650edd5ae64ebd42e88bd12b267eea679 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 30 Jan 2007 11:09:32 +0000 Subject: [PATCH] Get the alt text for the question type icon in a better way. --- lib/questionlib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.''; -- 2.39.5