Skip to content

Commit

Permalink
Merge branch 'MDL-32065-MOODLE_21_STABLE-1' of git://git.luns.net.uk/…
Browse files Browse the repository at this point in the history
…moodle into MOODLE_21_STABLE
  • Loading branch information
Sam Hemelryk committed Mar 20, 2012
2 parents f5fd808 + 9f1495a commit e5f9484
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mod/feedback/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@
// echo '<input title="'.get_string('switch_item_to_not_required','feedback').'" type="image" src="pics/required.gif" hspace="1" height="11" width="11" border="0" />';
// echo '<input class="feedback_required_button" title="'.get_string('switch_item_to_not_required','feedback').'" type="image" src="pics/required.gif" />';
$buttontitle = get_string('switch_item_to_not_required','feedback');
$buttonimg = 'pics/required.gif';
$buttonimg = $OUTPUT->pix_url('required', 'feedback');
} else {
// echo '<input title="'.get_string('switch_item_to_required','feedback').'" type="image" src="pics/notrequired.gif" hspace="1" height="11" width="11" border="0" />';
// echo '<input class="feedback_required_button" title="'.get_string('switch_item_to_required','feedback').'" type="image" src="pics/notrequired.gif" />';
$buttontitle = get_string('switch_item_to_required','feedback');
$buttonimg = 'pics/notrequired.gif';
$buttonimg = $OUTPUT->pix_url('notrequired', 'feedback');
}
$requiredurl = new moodle_url($url, array('switchitemrequired'=>$feedbackitem->id));
$buttonlink = $requiredurl->out();
Expand Down
3 changes: 2 additions & 1 deletion mod/feedback/item/multichoice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function get_printval($item, $value) {
}

function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) {
global $OUTPUT;
$sep_dec = get_string('separator_decimal', 'feedback');
if(substr($sep_dec, 0, 2) == '[['){
$sep_dec = FEEDBACK_DECIMAL;
Expand All @@ -214,7 +215,7 @@ function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false
$pixnr = 0;
foreach($analysedVals as $val) {
$intvalue = $pixnr % 10;
$pix = "pics/$intvalue.gif";
$pix = $OUTPUT->pix_url('multichoice/' . $intvalue, 'feedback');
$pixnr++;
$pixwidth = intval($val->quotient * FEEDBACK_MAX_PIX_LENGTH);
$quotient = number_format(($val->quotient * 100), 2, $sep_dec, $sep_thous);
Expand Down
3 changes: 2 additions & 1 deletion mod/feedback/item/multichoicerated/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function get_printval($item, $value) {
}

function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) {
global $OUTPUT;
$sep_dec = get_string('separator_decimal', 'feedback');
if(substr($sep_dec, 0, 2) == '[['){
$sep_dec = FEEDBACK_DECIMAL;
Expand All @@ -185,7 +186,7 @@ function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false
$avg = 0.0;
foreach($analysedVals as $val) {
$intvalue = $pixnr % 10;
$pix = "pics/$intvalue.gif";
$pix = $OUTPUT->pix_url('multichoice/' . $intvalue, 'feedback');
$pixnr++;
$pixwidth = intval($val->quotient * FEEDBACK_MAX_PIX_LENGTH);

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit e5f9484

Please sign in to comment.