Skip to content

Commit

Permalink
MDL-20410 - remove set_focuscontrol (bulk commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijaya committed Jul 1, 2010
1 parent 36099bd commit 377d7b8
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 23 deletions.
1 change: 0 additions & 1 deletion admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
}

/// print header stuff ------------------------------------------------------------
$PAGE->set_focuscontrol($focus);
if (empty($SITE->fullname)) {
$PAGE->set_title($settingspage->visiblename);
$PAGE->set_heading($settingspage->visiblename);
Expand Down
3 changes: 1 addition & 2 deletions auth/shibboleth/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
$PAGE->set_url('/auth/shibboleth/login.php');
$PAGE->navbar->add($loginsite);
$PAGE->set_title("$site->fullname: $loginsite");
$PAGE->set_heading($site->fullname);
$PAGE->set_focuscontrol('idp');
$PAGE->set_heading($site->fullname);

echo $OUTPUT->header();
include("index_form.html");
Expand Down
1 change: 0 additions & 1 deletion calendar/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$pagetitle);
$PAGE->set_heading($COURSE->fullname);
$PAGE->set_button($prefsbutton);
$PAGE->set_focuscontrol('pw_all');
$PAGE->set_pagelayout('standard');

$renderer = $PAGE->get_renderer('core_calendar');
Expand Down
1 change: 0 additions & 1 deletion course/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@

$PAGE->set_title($title);
$PAGE->set_heading($fullname);
$PAGE->set_focuscontrol($editform->focus());

echo $OUTPUT->header();
echo $OUTPUT->heading($streditcoursesettings);
Expand Down
1 change: 0 additions & 1 deletion course/editcategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@

$PAGE->set_title($title);
$PAGE->set_heading($fullname);
$PAGE->set_focuscontrol($mform->focus());
echo $OUTPUT->header();
echo $OUTPUT->heading($strtitle);

Expand Down
3 changes: 1 addition & 2 deletions course/modedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,7 @@
}

$PAGE->set_heading($course->fullname);
$PAGE->set_title($streditinga);
$PAGE->set_focuscontrol($mform->focus());
$PAGE->set_title($streditinga);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();

Expand Down
6 changes: 2 additions & 4 deletions lib/deprecatedlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2132,8 +2132,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',

$PAGE->set_title($title);
$PAGE->set_heading($heading);
$PAGE->set_cacheable($cache);
$PAGE->set_focuscontrol($focus);
$PAGE->set_cacheable($cache);
if ($button == '') {
$button = ' ';
}
Expand Down Expand Up @@ -2198,8 +2197,7 @@ function print_header_simple($title='', $heading='', $navigation='', $focus='',
}

$PAGE->set_title($title);
$PAGE->set_heading($heading);
$PAGE->set_focuscontrol($focus);
$PAGE->set_heading($heading);
$PAGE->set_cacheable(true);
$PAGE->set_button($button);

Expand Down
1 change: 0 additions & 1 deletion login/forgot_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
/// DISPLAY FORM
$PAGE->set_title($strforgotten);
$PAGE->set_heading($COURSE->fullname);
$PAGE->set_focuscontrol('id_email');

echo $OUTPUT->header();
echo $OUTPUT->box(get_string('passwordforgotteninstructions2'), 'generalbox boxwidthnormal boxaligncenter');
Expand Down
1 change: 0 additions & 1 deletion login/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function signup_captcha_enabled() {

$PAGE->set_title($newaccount);
$PAGE->set_heading($SITE->fullname);
$PAGE->set_focuscontrol($mform_signup->focus());

echo $OUTPUT->header();
$mform_signup->display();
Expand Down
5 changes: 2 additions & 3 deletions mod/quiz/accessrules.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function safebrowser_required($canpreview) {
* @param boolean $unfinished whether the button is to continue an existing attempt,
* or start a new one. This affects whether a javascript alert is shown.
*/
public function print_start_attempt_button($canpreview, $buttontext, $unfinished) {
public function print_start_attempt_button($canpreview, $buttontext, $unfinished) {
/// Do we need a confirm javascript alert?
global $OUTPUT;
if ($unfinished) {
Expand Down Expand Up @@ -647,8 +647,7 @@ public function do_password_check($canpreview, $accessmanager, $return = false)
$output = '';

/// Start the page and print the quiz intro, if any.
if (!$return) {
$PAGE->set_focuscontrol('quizpassword');
if (!$return) {
echo $OUTPUT->header();
}
if (trim(strip_tags($this->_quiz->intro))) {
Expand Down
2 changes: 0 additions & 2 deletions mod/wiki/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ function __construct($wiki, $subwiki, $cm) {

// initialise wiki renderer
$this->wikioutput = $PAGE->get_renderer('mod_wiki');

$PAGE->set_focuscontrol('');
$PAGE->set_cacheable(true);
$PAGE->set_cm($cm);
$PAGE->set_activity_record($wiki);
Expand Down
4 changes: 0 additions & 4 deletions user/messageselect.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@
$PAGE->navbar->add($strtitle);
$PAGE->set_title($strtitle);
$PAGE->set_heading($strtitle);
if (empty($messagebody)) {
$PAGE->set_focuscontrol('theform.messagebody');
}

echo $OUTPUT->header();
// if messaging is disabled on site, we can still allow users with capabilities to send emails instead
if (empty($CFG->messaging)) {
Expand Down

0 comments on commit 377d7b8

Please sign in to comment.