Browse Source

Fixes #110 use format string when printing course name.

all other uses of att-name and course->fullname use functions
that perform format_string() already.
MOODLE_29_STABLE
Dan Marsden 10 years ago
parent
commit
06e48947d3
  1. 2
      export.php
  2. 2
      manage.php
  3. 4
      preferences.php
  4. 2
      report.php
  5. 6
      sessions.php
  6. 2
      take.php
  7. 2
      tempedit.php
  8. 2
      tempmerge.php
  9. 2
      tempusers.php

2
export.php

@ -180,7 +180,7 @@ if ($formdata = $mform->get_data()) {
$output = $PAGE->get_renderer('mod_attendance'); $output = $PAGE->get_renderer('mod_attendance');
$tabs = new attendance_tabs($att, attendance_tabs::TAB_EXPORT); $tabs = new attendance_tabs($att, attendance_tabs::TAB_EXPORT);
echo $output->header(); 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($tabs);
$mform->display(); $mform->display();

2
manage.php

@ -78,7 +78,7 @@ $sesstable = new attendance_manage_data($att);
// Output starts here. // Output starts here.
echo $output->header(); 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($tabs);
echo $output->render($filtercontrols); echo $output->render($filtercontrols);
echo $output->render($sesstable); echo $output->render($sesstable);

4
preferences.php

@ -89,7 +89,7 @@ switch ($att->pageparams->action) {
($status->description ? $status->description : get_string('nodescription', 'attendance')); ($status->description ? $status->description : get_string('nodescription', 'attendance'));
$params = array_merge($att->pageparams->get_significant_params(), array('confirm' => 1)); $params = array_merge($att->pageparams->get_significant_params(), array('confirm' => 1));
echo $OUTPUT->header(); 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->confirm($message, $att->url_preferences($params), $att->url_preferences());
echo $OUTPUT->footer(); echo $OUTPUT->footer();
exit; exit;
@ -130,7 +130,7 @@ $setselector = new attendance_set_selector($att, $maxstatusset);
// Output starts here. // Output starts here.
echo $output->header(); 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($tabs);
echo $output->render($setselector); echo $output->render($setselector);
echo $output->render($prefdata); echo $output->render($prefdata);

2
report.php

@ -73,7 +73,7 @@ $event->trigger();
// Output starts here. // Output starts here.
echo $output->header(); 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($tabs);
echo $output->render($filtercontrols); echo $output->render($filtercontrols);
echo $output->render($reportdata); echo $output->render($reportdata);

6
sessions.php

@ -109,7 +109,7 @@ switch ($att->pageparams->action) {
$params = array('action' => $att->pageparams->action, 'sessionid' => $sessionid, 'confirm' => 1, 'sesskey' => sesskey()); $params = array('action' => $att->pageparams->action, 'sessionid' => $sessionid, 'confirm' => 1, 'sesskey' => sesskey());
echo $OUTPUT->header(); 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->confirm($message, $att->url_sessions($params), $att->url_manage());
echo $OUTPUT->footer(); echo $OUTPUT->footer();
exit; exit;
@ -144,7 +144,7 @@ switch ($att->pageparams->action) {
'confirm' => 1, 'sesskey' => sesskey()); 'confirm' => 1, 'sesskey' => sesskey());
echo $OUTPUT->header(); 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->confirm($message, $att->url_sessions($params), $att->url_manage());
echo $OUTPUT->footer(); echo $OUTPUT->footer();
exit; exit;
@ -179,7 +179,7 @@ switch ($att->pageparams->action) {
$output = $PAGE->get_renderer('mod_attendance'); $output = $PAGE->get_renderer('mod_attendance');
$tabs = new attendance_tabs($att, attendance_tabs::TAB_ADD); $tabs = new attendance_tabs($att, attendance_tabs::TAB_ADD);
echo $output->header(); 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($tabs);
$mform->display(); $mform->display();

2
take.php

@ -70,7 +70,7 @@ $sesstable = new attendance_take_data($att);
// Output starts here. // Output starts here.
echo $output->header(); 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($tabs);
echo $output->render($sesstable); echo $output->render($sesstable);

2
tempedit.php

@ -108,7 +108,7 @@ if ($mform->is_cancelled()) {
$tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS); $tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS);
echo $output->header(); 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); echo $output->render($tabs);
$mform->display(); $mform->display();
echo $output->footer($course); echo $output->footer($course);

2
tempmerge.php

@ -98,7 +98,7 @@ $output = $PAGE->get_renderer('mod_attendance');
$tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS); $tabs = new attendance_tabs($att, attendance_tabs::TAB_TEMPORARYUSERS);
echo $output->header(); 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); echo $output->render($tabs);
$mform->display(); $mform->display();
echo $output->footer($course); echo $output->footer($course);

2
tempusers.php

@ -81,7 +81,7 @@ if ($data = $mform->get_data()) {
/// Output starts here /// Output starts here
echo $output->header(); 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); echo $output->render($tabs);
$mform->display(); $mform->display();

Loading…
Cancel
Save