Fixes #110 use format string when printing course name.
authorDan Marsden <dan@danmarsden.com>
Wed, 29 Jul 2015 22:37:45 +0000 (10:37 +1200)
committerDan Marsden <dan@danmarsden.com>
Wed, 29 Jul 2015 22:37:45 +0000 (10:37 +1200)
all other uses of att-name and course->fullname use functions
that perform format_string() already.

export.php
manage.php
preferences.php
report.php
sessions.php
take.php
tempedit.php
tempmerge.php
tempusers.php

index 534cadb..bbda671 100644 (file)
@@ -180,7 +180,7 @@ if ($formdata = $mform->get_data()) {
 $output = $PAGE->get_renderer('mod_attendance');
 $tabs = new attendance_tabs($att, attendance_tabs::TAB_EXPORT);
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
 echo $output->render($tabs);
 
 $mform->display();
index 0099d5e..830c61f 100644 (file)
@@ -78,7 +78,7 @@ $sesstable = new attendance_manage_data($att);
 // Output starts here.
 
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
 echo $output->render($tabs);
 echo $output->render($filtercontrols);
 echo $output->render($sesstable);
index 876f595..76d48ab 100644 (file)
@@ -89,7 +89,7 @@ switch ($att->pageparams->action) {
                     ($status->description ? $status->description : get_string('nodescription', 'attendance'));
         $params = array_merge($att->pageparams->get_significant_params(), array('confirm' => 1));
         echo $OUTPUT->header();
-        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
         echo $OUTPUT->confirm($message, $att->url_preferences($params), $att->url_preferences());
         echo $OUTPUT->footer();
         exit;
@@ -130,7 +130,7 @@ $setselector = new attendance_set_selector($att, $maxstatusset);
 // Output starts here.
 
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' format_string($course->fullname));
 echo $output->render($tabs);
 echo $output->render($setselector);
 echo $output->render($prefdata);
index 915df34..46bd00c 100644 (file)
@@ -73,7 +73,7 @@ $event->trigger();
 // Output starts here.
 
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
 echo $output->render($tabs);
 echo $output->render($filtercontrols);
 echo $output->render($reportdata);
index 2b93633..d1f537d 100644 (file)
@@ -109,7 +109,7 @@ switch ($att->pageparams->action) {
         $params = array('action' => $att->pageparams->action, 'sessionid' => $sessionid, 'confirm' => 1, 'sesskey' => sesskey());
 
         echo $OUTPUT->header();
-        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
         echo $OUTPUT->confirm($message, $att->url_sessions($params), $att->url_manage());
         echo $OUTPUT->footer();
         exit;
@@ -144,7 +144,7 @@ switch ($att->pageparams->action) {
                         'confirm' => 1, 'sesskey' => sesskey());
 
         echo $OUTPUT->header();
-        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+        echo $OUTPUT->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
         echo $OUTPUT->confirm($message, $att->url_sessions($params), $att->url_manage());
         echo $OUTPUT->footer();
         exit;
@@ -179,7 +179,7 @@ switch ($att->pageparams->action) {
 $output = $PAGE->get_renderer('mod_attendance');
 $tabs = new attendance_tabs($att, attendance_tabs::TAB_ADD);
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
 echo $output->render($tabs);
 
 $mform->display();
index e5efed5..055dd27 100644 (file)
--- a/take.php
+++ b/take.php
@@ -70,7 +70,7 @@ $sesstable = new attendance_take_data($att);
 // Output starts here.
 
 echo $output->header();
-echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .$course->fullname);
+echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: ' .format_string($course->fullname));
 echo $output->render($tabs);
 echo $output->render($sesstable);
 
index 15349df..618e6d1 100644 (file)
@@ -108,7 +108,7 @@ if ($mform->is_cancelled()) {
 $tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS);
 
 echo $output->header();
-echo $output->heading(get_string('tempusersedit', 'attendance').' : '.$course->fullname);
+echo $output->heading(get_string('tempusersedit', 'attendance').' : '.format_string($course->fullname));
 echo $output->render($tabs);
 $mform->display();
 echo $output->footer($course);
index 216d07a..1afe21f 100644 (file)
@@ -98,7 +98,7 @@ $output = $PAGE->get_renderer('mod_attendance');
 $tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS);
 
 echo $output->header();
-echo $output->heading(get_string('tempusermerge', 'attendance').' : '.$course->fullname);
+echo $output->heading(get_string('tempusermerge', 'attendance').' : '.format_string($course->fullname));
 echo $output->render($tabs);
 $mform->display();
 echo $output->footer($course);
\ No newline at end of file
index 8fc2a3d..a919fcc 100644 (file)
@@ -81,7 +81,7 @@ if ($data = $mform->get_data()) {
 
 /// Output starts here
 echo $output->header();
-echo $output->heading(get_string('tempusers', 'attendance').' : '.$course->fullname);
+echo $output->heading(get_string('tempusers', 'attendance').' : '.format_string($course->fullname));
 echo $output->render($tabs);
 $mform->display();