Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-20410 - remove set_focuscontrol (bulk commit)

  • Loading branch information...
commit 377d7b82f643a12462b4e9537a12bbf9d067473e 1 parent 36099bd
Rossiani Wijaya authored
View
1  admin/settings.php
@@ -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);
View
3  auth/shibboleth/login.php
@@ -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");
View
1  calendar/export.php
@@ -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');
View
1  course/edit.php
@@ -148,7 +148,6 @@
$PAGE->set_title($title);
$PAGE->set_heading($fullname);
-$PAGE->set_focuscontrol($editform->focus());
echo $OUTPUT->header();
echo $OUTPUT->heading($streditcoursesettings);
View
1  course/editcategory.php
@@ -109,7 +109,6 @@
$PAGE->set_title($title);
$PAGE->set_heading($fullname);
-$PAGE->set_focuscontrol($mform->focus());
echo $OUTPUT->header();
echo $OUTPUT->heading($strtitle);
View
3  course/modedit.php
@@ -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();
View
6 lib/deprecatedlib.php
@@ -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 = ' ';
}
@@ -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);
View
1  login/forgot_password.php
@@ -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');
View
1  login/signup.php
@@ -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();
View
5 mod/quiz/accessrules.php
@@ -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) {
@@ -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))) {
View
2  mod/wiki/pagelib.php
@@ -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);
View
4 user/messageselect.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.