~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to mod/feedback/item/multichoice/lib.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
            echo '<label for="'. $item->typ . '_' . $item->id .'">';
321
321
        }
322
322
        echo '('.$item->label.') ';
323
 
        echo format_text($item->name.$requiredmark, true, false, false);
 
323
        echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
324
324
        if ($item->dependitem) {
325
325
            if ($dependitem = $DB->get_record('feedback_item', array('id'=>$item->dependitem))) {
326
326
                echo ' <span class="feedback_depend">';
428
428
        echo '<div class="feedback_item_label_'.$align.$highlight.'">';
429
429
        if ($info->subtype == 'd') {
430
430
            echo '<label for="'. $item->typ . '_' . $item->id .'">';
431
 
            echo format_text($item->name.$requiredmark, true, false, false);
 
431
            echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
432
432
            echo '</label>';
433
433
        } else {
434
 
            echo format_text($item->name.$requiredmark, true, false, false);
 
434
            echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
435
435
        }
436
436
        echo '</div>';
437
437
 
523
523
        //print the question and label
524
524
        echo '<div class="feedback_item_label_'.$align.'">';
525
525
        echo '('.$item->label.') ';
526
 
        echo format_text($item->name . $requiredmark, true, false, false);
 
526
        echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
527
527
        echo '</div>';
528
528
 
529
529
        //print the presentation
535
535
                foreach ($values as $val) {
536
536
                    if ($val == $index) {
537
537
                        echo '<div class="feedback_item_multianswer">';
538
 
                        echo text_to_html($pres, true, false, false);
 
538
                        echo format_text($pres, FORMAT_HTML, array('noclean' => true, 'para' => false));
539
539
                        echo '</div>';
540
540
                        break;
541
541
                    }
547
547
            foreach ($presentation as $pres) {
548
548
                if ($value == $index) {
549
549
                    echo $OUTPUT->box_start('generalbox boxalign'.$align);
550
 
                    echo text_to_html($pres, true, false, false);
 
550
                    echo format_text($pres, FORMAT_HTML, array('noclean' => true, 'para' => false));
551
551
                    echo $OUTPUT->box_end();
552
552
                    break;
553
553
                }
703
703
                </span>
704
704
                <span class="feedback_item_radiolabel_<?php echo $hv.'_'.$align;?>">
705
705
                    <label for="<?php echo $inputid;?>">
706
 
                        <?php echo text_to_html($radio, true, false, false);?>&nbsp;
 
706
                        <?php echo format_text($radio, FORMAT_HTML, array('noclean' => true, 'para' => false));?>&nbsp;
707
707
                    </label>
708
708
                </span>
709
709
            </li>
751
751
                </span>
752
752
                <span class="feedback_item_radiolabel_<?php echo $hv.'_'.$align;?>">
753
753
                    <label for="<?php echo $inputid;?>">
754
 
                        <?php echo text_to_html($check, true, false, false);?>&nbsp;
 
754
                        <?php echo format_text($check, FORMAT_HTML, array('noclean' => true, 'para' => false));?>&nbsp;
755
755
                    </label>
756
756
                </span>
757
757
            </li>
792
792
                    }
793
793
                ?>
794
794
                    <option value="<?php echo $index;?>" <?php echo $selected;?>>
795
 
                        <?php echo text_to_html($dropdown, true, false, false);?>
 
795
                        <?php echo format_text($dropdown, FORMAT_HTML, array('noclean' => true, 'para' => false));?>
796
796
                    </option>
797
797
                <?php
798
798
                    $index++;