From: gustav_delius Date: Fri, 24 Mar 2006 20:02:42 +0000 (+0000) Subject: Setting title attribute on questiontype icons so that tooltips show the question... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ca252edb1d406503a6f88e8097e74da75e0ee6a9;p=moodle.git Setting title attribute on questiontype icons so that tooltips show the question type name --- diff --git a/lib/questionlib.php b/lib/questionlib.php index 921f1462d7..d24dc8017a 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1153,9 +1153,10 @@ function print_question_icon($question, $editlink=true, $return = false) { global $QTYPES, $CFG; + $namestr = get_string($question->qtype, 'quiz'); $html = ''.
-            get_string($QTYPES[$question->qtype]->name(), 'quiz').''; + $namestr.'" title="'.$namestr.'" />'; if ($editlink) { $html = "wwwroot/question/question.php?id=$question->id\" title=\""