Skip to content

Commit

Permalink
Merge branch 'MDL-42339_m25' of git://github.com/rwijaya/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_25_STABLE
  • Loading branch information
marinaglancy committed Feb 5, 2014
2 parents 06a25d7 + d5e77b4 commit d977433
Show file tree
Hide file tree
Showing 39 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,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();

Expand Down
2 changes: 1 addition & 1 deletion mod/chat/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion mod/choice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions mod/data/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/analysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/// print the tabs
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/analysis_course.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/complete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/complete_guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_completed.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,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
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/// print the tabs
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/edit_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,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 tabs
require('tabs.php');
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/// print the tabs
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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();

Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/mapcourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

require('tabs.php');
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/print.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/show_entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

require('tabs.php');
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/show_entries_anonym.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/// Print the main part of the page
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/show_nonrespondents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/use_templ.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,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.
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/unsubscribeall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions mod/forum/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/deleteentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,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));
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/editcategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
$navaction = get_string($action). " " . textlib::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();

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions mod/glossary/exportentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
'glossaryid = :glossaryid AND LOWER(concept) = :concept', array(
'glossaryid' => $mainglossary->id,
'concept' => textlib::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'));
Expand All @@ -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>?';
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion mod/lti/grade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/attempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/report/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -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. ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/startattempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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();
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mod/survey/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Loading

0 comments on commit d977433

Please sign in to comment.