Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-42339 - removed double formatting for set_title() and set_heading()

  • Loading branch information...
commit a3b0030e04b0ffd6f2c160e1fcbc0b501c9f670b 1 parent 4f6e4f8
@rwijaya rwijaya authored
Showing with 62 additions and 62 deletions.
  1. +1 −1  mod/assignment/lib.php
  2. +1 −1  mod/chat/view.php
  3. +1 −1  mod/choice/view.php
  4. +2 −2 mod/data/edit.php
  5. +2 −2 mod/feedback/analysis.php
  6. +2 −2 mod/feedback/analysis_course.php
  7. +2 −2 mod/feedback/complete.php
  8. +2 −2 mod/feedback/complete_guest.php
  9. +2 −2 mod/feedback/delete_completed.php
  10. +2 −2 mod/feedback/delete_item.php
  11. +2 −2 mod/feedback/delete_template.php
  12. +2 −2 mod/feedback/edit.php
  13. +2 −2 mod/feedback/edit_item.php
  14. +2 −2 mod/feedback/import.php
  15. +1 −1  mod/feedback/index.php
  16. +2 −2 mod/feedback/mapcourse.php
  17. +2 −2 mod/feedback/print.php
  18. +2 −2 mod/feedback/show_entries.php
  19. +2 −2 mod/feedback/show_entries_anonym.php
  20. +2 −2 mod/feedback/show_nonrespondents.php
  21. +2 −2 mod/feedback/use_templ.php
  22. +2 −2 mod/feedback/view.php
  23. +1 −1  mod/forum/unsubscribeall.php
  24. +2 −2 mod/forum/view.php
  25. +1 −1  mod/glossary/deleteentry.php
  26. +1 −1  mod/glossary/edit.php
  27. +1 −1  mod/glossary/editcategories.php
  28. +1 −1  mod/glossary/export.php
  29. +3 −3 mod/glossary/exportentry.php
  30. +1 −1  mod/glossary/import.php
  31. +1 −1  mod/glossary/view.php
  32. +1 −1  mod/lesson/import.php
  33. +1 −1  mod/lti/grade.php
  34. +1 −1  mod/page/view.php
  35. +1 −1  mod/quiz/attempt.php
  36. +1 −1  mod/quiz/report/default.php
  37. +1 −1  mod/quiz/review.php
  38. +1 −1  mod/quiz/startattempt.php
  39. +1 −1  mod/quiz/summary.php
  40. +1 −1  mod/survey/view.php
  41. +1 −1  mod/wiki/pagelib.php
View
2  mod/assignment/lib.php
@@ -1245,7 +1245,7 @@ function display_submissions($message='') {
$tabindex = 1; //tabindex for quick grading tabbing; Not working for dropdowns yet
add_to_log($course->id, 'assignment', 'view submission', 'submissions.php?id='.$this->cm->id, $this->assignment->id, $this->cm->id);
- $PAGE->set_title(format_string($this->assignment->name,true));
+ $PAGE->set_title($this->assignment->name);
$PAGE->set_heading($this->course->fullname);
echo $OUTPUT->header();
View
2  mod/chat/view.php
@@ -61,7 +61,7 @@
// show some info for guests
if (isguestuser()) {
- $PAGE->set_title(format_string($chat->name));
+ $PAGE->set_title($chat->name);
echo $OUTPUT->header();
echo $OUTPUT->confirm('<p>'.get_string('noguests', 'chat').'</p>'.get_string('liketologin'),
get_login_url(), $CFG->wwwroot.'/course/view.php?id='.$course->id);
View
2  mod/choice/view.php
@@ -45,7 +45,7 @@
}
}
- $PAGE->set_title(format_string($choice->name));
+ $PAGE->set_title($choice->name);
$PAGE->set_heading($course->fullname);
// Mark viewed by user (if required)
View
4 mod/data/edit.php
@@ -81,8 +81,8 @@
if (empty($cm->visible) and !has_capability('moodle/course:viewhiddenactivities', $context)) {
$strdatabases = get_string("modulenameplural", "data");
- $PAGE->set_title(format_string($data->name));
- $PAGE->set_heading(format_string($course->fullname));
+ $PAGE->set_title($data->name);
+ $PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
notice(get_string("activityiscurrentlyhidden"));
}
View
4 mod/feedback/analysis.php
@@ -77,8 +77,8 @@
$strfeedback = get_string("modulename", "feedback");
$PAGE->navbar->add(get_string('analysis', 'feedback'));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
View
4 mod/feedback/analysis_course.php
@@ -80,8 +80,8 @@
$strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
/// print the tabs
View
4 mod/feedback/complete.php
@@ -154,8 +154,8 @@
$PAGE->navbar->add(get_string('feedback:complete', 'feedback'));
$urlparams = array('id'=>$cm->id, 'gopage'=>$gopage, 'courseid'=>$course->id);
$PAGE->set_url('/mod/feedback/complete.php', $urlparams);
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
//ishidden check.
View
4 mod/feedback/complete_guest.php
@@ -162,8 +162,8 @@
$urlparams = array('id'=>$course->id);
$PAGE->navbar->add($strfeedbacks, new moodle_url('/mod/feedback/index.php', $urlparams));
$PAGE->navbar->add(format_string($feedback->name));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
//ishidden check.
View
4 mod/feedback/delete_completed.php
@@ -89,8 +89,8 @@
$strfeedback = get_string("modulename", "feedback");
$PAGE->navbar->add(get_string('delete_entry', 'feedback'));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
/// Print the main part of the page
View
4 mod/feedback/delete_item.php
@@ -71,8 +71,8 @@
$strfeedback = get_string("modulename", "feedback");
$PAGE->navbar->add(get_string('delete_item', 'feedback'));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
/// Print the main part of the page
View
4 mod/feedback/delete_template.php
@@ -107,8 +107,8 @@
$strfeedback = get_string("modulename", "feedback");
$strdeletefeedback = get_string('delete_template', 'feedback');
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
/// print the tabs
View
4 mod/feedback/edit.php
@@ -155,8 +155,8 @@
$strfeedback = get_string('modulename', 'feedback');
$PAGE->set_url('/mod/feedback/edit.php', array('id'=>$cm->id, 'do_show'=>$do_show));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
//Adding the javascript module for the items dragdrop.
if (count($feedbackitems) > 1) {
View
4 mod/feedback/edit_item.php
@@ -121,8 +121,8 @@
} else {
$PAGE->navbar->add(get_string('add_item', 'feedback'));
}
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
// Print the main part of the page.
View
4 mod/feedback/import.php
@@ -92,8 +92,8 @@
$strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
/// print the tabs
View
2  mod/feedback/index.php
@@ -49,7 +49,7 @@
$strfeedback = get_string("modulename", "feedback");
$PAGE->navbar->add($strfeedbacks);
-$PAGE->set_heading(format_string($course->fullname));
+$PAGE->set_heading($course->fullname);
$PAGE->set_title(get_string('modulename', 'feedback').' '.get_string('activities'));
echo $OUTPUT->header();
echo $OUTPUT->heading($strfeedbacks);
View
4 mod/feedback/mapcourse.php
@@ -84,8 +84,8 @@
$strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
View
4 mod/feedback/print.php
@@ -56,8 +56,8 @@
$PAGE->navbar->add($strfeedbacks, $feedback_url);
$PAGE->navbar->add(format_string($feedback->name));
-$PAGE->set_title(format_string($feedback->name));
-$PAGE->set_heading(format_string($course->fullname));
+$PAGE->set_title($feedback->name);
+$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
/// Print the main part of the page
View
4 mod/feedback/show_entries.php
@@ -81,8 +81,8 @@
$strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
View
4 mod/feedback/show_entries_anonym.php
@@ -62,8 +62,8 @@
$strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($feedback->name));
View
4 mod/feedback/show_nonrespondents.php
@@ -131,8 +131,8 @@
/// Print the page header
$PAGE->navbar->add(get_string('show_nonrespondents', 'feedback'));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
require('tabs.php');
View
4 mod/feedback/use_templ.php
@@ -82,8 +82,8 @@
$PAGE->navbar->add($strfeedbacks, new moodle_url('/mod/feedback/index.php', array('id'=>$course->id)));
$PAGE->navbar->add(format_string($feedback->name));
-$PAGE->set_heading(format_string($course->fullname));
-$PAGE->set_title(format_string($feedback->name));
+$PAGE->set_heading($course->fullname);
+$PAGE->set_title($feedback->name);
echo $OUTPUT->header();
/// Print the main part of the page
View
4 mod/feedback/view.php
@@ -122,8 +122,8 @@
$PAGE->set_pagelayout('incourse');
}
$PAGE->set_url('/mod/feedback/view.php', array('id'=>$cm->id, 'do_show'=>'view'));
-$PAGE->set_title(format_string($feedback->name));
-$PAGE->set_heading(format_string($course->fullname));
+$PAGE->set_title($feedback->name);
+$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
//ishidden check.
View
2  mod/forum/unsubscribeall.php
@@ -42,7 +42,7 @@
$PAGE->navbar->add(get_string('modulename', 'forum'));
$PAGE->navbar->add($strunsubscribeall);
$PAGE->set_title($strunsubscribeall);
-$PAGE->set_heading(format_string($COURSE->fullname));
+$PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($strunsubscribeall);
View
4 mod/forum/view.php
@@ -106,9 +106,9 @@
/// Print header.
- $PAGE->set_title(format_string($forum->name));
+ $PAGE->set_title($forum->name);
$PAGE->add_body_class('forumtype-'.$forum->type);
- $PAGE->set_heading(format_string($course->fullname));
+ $PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
View
2  mod/glossary/deleteentry.php
@@ -118,7 +118,7 @@
} else { // the operation has not been confirmed yet so ask the user to do so
$PAGE->navbar->add(get_string('delete'));
- $PAGE->set_title(format_string($glossary->name));
+ $PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
$areyousure = "<b>".format_string($entry->concept)."</b><p>$strareyousuredelete</p>";
View
2  mod/glossary/edit.php
@@ -182,7 +182,7 @@
$PAGE->navbar->add(get_string('edit'));
}
-$PAGE->set_title(format_string($glossary->name));
+$PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($glossary->name), 2);
View
2  mod/glossary/editcategories.php
@@ -75,7 +75,7 @@
$navaction = get_string($action). " " . core_text::strtolower(get_string("category","glossary"));
$PAGE->navbar->add($navaction);
}
-$PAGE->set_title(format_string($glossary->name));
+$PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($glossary->name), 2);
View
2  mod/glossary/export.php
@@ -48,7 +48,7 @@
$PAGE->set_url('/mod/glossary/export.php', array('id'=>$cm->id));
$PAGE->navbar->add($strexportentries);
-$PAGE->set_title(format_string($glossary->name));
+$PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
View
6 mod/glossary/exportentry.php
@@ -73,7 +73,7 @@
'glossaryid = :glossaryid AND LOWER(concept) = :concept', array(
'glossaryid' => $mainglossary->id,
'concept' => core_text::strtolower($entry->concept)))) {
- $PAGE->set_title(format_string($glossary->name));
+ $PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->notification(get_string('errconceptalreadyexists', 'glossary'));
@@ -85,8 +85,8 @@
}
if (!data_submitted() or !$confirm or !confirm_sesskey()) {
- $PAGE->set_title(format_string($glossary->name));
- $PAGE->set_heading(format_string($course->fullname));
+ $PAGE->set_title($glossary->name);
+ $PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo '<div class="boxaligncenter">';
$areyousure = '<h2>'.format_string($entry->concept).'</h2><p align="center">'.get_string('areyousureexport','glossary').'<br /><b>'.format_string($mainglossary->name).'</b>?';
View
2  mod/glossary/import.php
@@ -46,7 +46,7 @@
$strimportentries = get_string('importentriesfromxml', 'glossary');
$PAGE->navbar->add($strimportentries);
-$PAGE->set_title(format_string($glossary->name));
+$PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
View
2  mod/glossary/view.php
@@ -240,7 +240,7 @@
$strwaitingapproval = get_string('waitingapproval', 'glossary');
/// If we are in approval mode, prit special header
-$PAGE->set_title(format_string($glossary->name));
+$PAGE->set_title($glossary->name);
$PAGE->set_heading($course->fullname);
$url = new moodle_url('/mod/glossary/view.php', array('id'=>$cm->id));
if (isset($mode)) {
View
2  mod/lesson/import.php
@@ -57,7 +57,7 @@
$PAGE->navbar->add($strimportquestions);
$PAGE->set_title($strimportquestions);
- $PAGE->set_heading(format_string($course->fullname));
+ $PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($lesson->name), 2);
echo $OUTPUT->heading_with_help($strimportquestions, 'importquestions', 'lesson', '', '', 3);
View
2  mod/lti/grade.php
@@ -155,7 +155,7 @@
$title = get_string('submissionsfor', 'lti', $lti->name);
-$PAGE->set_title(format_string($title , true));
+$PAGE->set_title($title);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
View
2  mod/page/view.php
@@ -74,7 +74,7 @@
if ($inpopup and $page->display == RESOURCELIB_DISPLAY_POPUP) {
$PAGE->set_pagelayout('popup');
$PAGE->set_title($course->shortname.': '.$page->name);
- $PAGE->set_heading(format_string($course->fullname));
+ $PAGE->set_heading($course->fullname);
} else {
$PAGE->set_title($course->shortname.': '.$page->name);
$PAGE->set_heading($course->fullname);
View
2  mod/quiz/attempt.php
@@ -127,7 +127,7 @@
$title = get_string('attempt', 'quiz', $attemptobj->get_attempt_number());
$headtags = $attemptobj->get_html_head_contributions($page);
-$PAGE->set_title(format_string($attemptobj->get_quiz_name()));
+$PAGE->set_title($attemptobj->get_quiz_name());
$PAGE->set_heading($attemptobj->get_course()->fullname);
if ($attemptobj->is_last_page($page)) {
View
2  mod/quiz/report/default.php
@@ -64,7 +64,7 @@ public function print_header_and_tabs($cm, $course, $quiz, $reportmode = 'overvi
global $PAGE, $OUTPUT;
// Print the page header.
- $PAGE->set_title(format_string($quiz->name));
+ $PAGE->set_title($quiz->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
$context = context_module::instance($cm->id);
View
2  mod/quiz/review.php
@@ -103,7 +103,7 @@
// Set up the page header.
$headtags = $attemptobj->get_html_head_contributions($page, $showall);
-$PAGE->set_title(format_string($attemptobj->get_quiz_name()));
+$PAGE->set_title($attemptobj->get_quiz_name());
$PAGE->set_heading($attemptobj->get_course()->fullname);
// Summary table start. ============================================================================
View
2  mod/quiz/startattempt.php
@@ -143,7 +143,7 @@
// Form not submitted successfully, re-display it and stop.
$PAGE->set_url($quizobj->start_attempt_url($page));
- $PAGE->set_title(format_string($quizobj->get_quiz_name()));
+ $PAGE->set_title($quizobj->get_quiz_name());
$accessmanager->setup_attempt_page($PAGE);
if (empty($quizobj->get_quiz()->showblocks)) {
$PAGE->blocks->show_only_fake_blocks();
View
2  mod/quiz/summary.php
@@ -92,7 +92,7 @@
$PAGE->blocks->add_fake_block($navbc, reset($regions));
$PAGE->navbar->add(get_string('summaryofattempt', 'quiz'));
-$PAGE->set_title(format_string($attemptobj->get_quiz_name()));
+$PAGE->set_title($attemptobj->get_quiz_name());
$PAGE->set_heading($attemptobj->get_course()->fullname);
// Display the page.
View
2  mod/survey/view.php
@@ -63,7 +63,7 @@
$showscales = ($template->name != 'ciqname');
$strsurvey = get_string("modulename", "survey");
- $PAGE->set_title(format_string($survey->name));
+ $PAGE->set_title($survey->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($survey->name);
View
2  mod/wiki/pagelib.php
@@ -119,7 +119,7 @@ function __construct($wiki, $subwiki, $cm) {
function print_header() {
global $OUTPUT, $PAGE, $CFG, $USER, $SESSION;
- $PAGE->set_heading(format_string($PAGE->course->fullname));
+ $PAGE->set_heading($PAGE->course->fullname);
$this->set_url();
Please sign in to comment.
Something went wrong with that request. Please try again.