From c3f806312fc6ab989080f4516cd76e38477ab21c Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 17 Sep 2005 12:10:35 +0000 Subject: [PATCH] Fix for bug 4052 --- mod/quiz/editlib.php | 28 ++++++++++++++-------------- mod/quiz/questiontypes/rqp/types.php | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 8e9d00fcea9..c5429a9050d 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -236,15 +236,15 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true) { echo '
'; if ($count > 1) { echo "sesskey\">\"$strmoveup\""; + src=\"$CFG->pixpath/t/up.gif\" border=\"0\" alt=\"$strmoveup\" />"; } echo ' '; if ($count < $lastindex) { echo "sesskey\">\"$strmovedown\""; + src=\"$CFG->pixpath/t/down.gif\" border=\"0\" alt=\"$strmovedown\" />"; echo "sesskey\"> - \"$strremove\""; + pixpath/t/delete.gif\" border=\"0\" alt=\"$strremove\" />"; } echo ''; echo ' '; @@ -262,13 +262,13 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true) { echo ""; if ($count != 0) { echo "sesskey\">\"$strmoveup\""; + src=\"$CFG->pixpath/t/up.gif\" border=\"0\" alt=\"$strmoveup\" />"; } echo ""; echo ""; if ($count < $lastindex-1) { echo "sesskey\">\"$strmovedown\""; + src=\"$CFG->pixpath/t/down.gif\" border=\"0\" alt=\"$strmovedown\" />"; } echo ""; @@ -296,14 +296,14 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true) { $context = $quiz->id ? '&contextquiz='.$quiz->id : ''; $quiz_id = $quiz->id ? '&quizid=' . $quiz->id : ''; echo " - \"$strpreview\""; + pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" />"; if ($canedit) { echo " - \"$stredit\""; + pixpath/t/edit.gif\" border=\"0\" alt=\"$stredit\" />"; } if ($allowdelete) { echo "sesskey\"> - \"$strremove\""; + pixpath/t/removeright.gif\" border=\"0\" alt=\"$strremove\" />"; } echo ""; @@ -440,7 +440,7 @@ function quiz_print_category_form($course, $current, $recurse=1, $showhidden=fal */ function quiz_print_cat_question_list($course, $categoryid, $quizid, $recurse=1, $page, $perpage, $showhidden=false, $sortorder='qtype, name ASC') { - global $QUIZ_QUESTION_TYPE, $USER; + global $QUIZ_QUESTION_TYPE, $USER, $CFG; $strcategory = get_string("category", "quiz"); $strquestion = get_string("question", "quiz"); @@ -567,20 +567,20 @@ function quiz_print_cat_question_list($course, $categoryid, $quizid, echo "\n\n"; if ($quizid) { echo "id&sesskey=$USER->sesskey\">\"$straddtoquiz\" "; + src=\"$CFG->pixpath/t/moveleft.gif\" border=\"0\" alt=\"$straddtoquiz\" /> "; } echo "id&quizid=$quizid','$strpreview','scrollbars=yes,resizable=yes,width=700,height=480', false)\">\"$strpreview\" "; + src=\"$CFG->pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /> "; if ($canedit) { echo "id\">\"$stredit\" "; + src=\"$CFG->pixpath/t/edit.gif\" border=\"0\" alt=\"$stredit\" /> "; // hide-feature if($question->hidden) { echo "id&hide=0&sesskey=$USER->sesskey\">\"$strrestore\""; + src=\"$CFG->pixpath/t/restore.gif\" border=\"0\" alt=\"$strrestore\" />"; } else { echo "id&delete=$question->id\">\"$strdelete\""; + src=\"$CFG->pixpath/t/delete.gif\" border=\"0\" alt=\"$strdelete\" />"; } } echo " id\" value=\"1\" />"; diff --git a/mod/quiz/questiontypes/rqp/types.php b/mod/quiz/questiontypes/rqp/types.php index 6f391478700..8c35fcbcf92 100644 --- a/mod/quiz/questiontypes/rqp/types.php +++ b/mod/quiz/questiontypes/rqp/types.php @@ -142,7 +142,7 @@ delete_records('quiz_rqp_types', 'id', $type->id); } else { foreach ($servers as $server) { - $actions = ''.$strinfo.' '.$strdelete.''; + $actions = ''.$strinfo.' '.$strdelete.''; $serverurl = ($info == $server->id) ? ''.$server->url.'' : $server->url; $table->add_data(array($type->name, $serverurl, $actions)); }