MDL-42834 admin: Remove loginhttps
This commit is contained in:
+2
-8
@@ -38,12 +38,6 @@
|
||||
$strunlock = get_string('unlockaccount', 'admin');
|
||||
$strconfirm = get_string('confirm');
|
||||
|
||||
if (empty($CFG->loginhttps)) {
|
||||
$securewwwroot = $CFG->wwwroot;
|
||||
} else {
|
||||
$securewwwroot = str_replace('http:','https:',$CFG->wwwroot);
|
||||
}
|
||||
|
||||
$returnurl = new moodle_url('/admin/user.php', array('sort' => $sort, 'dir' => $dir, 'perpage' => $perpage, 'page'=>$page));
|
||||
|
||||
// The $user variable is also used outside of these if statements.
|
||||
@@ -339,7 +333,7 @@
|
||||
if (has_capability('moodle/user:update', $sitecontext)) {
|
||||
// prevent editing of admins by non-admins
|
||||
if (is_siteadmin($USER) or !is_siteadmin($user)) {
|
||||
$url = new moodle_url($securewwwroot.'/user/editadvanced.php', array('id'=>$user->id, 'course'=>$site->id));
|
||||
$url = new moodle_url($CFG->wwwroot.'/user/editadvanced.php', array('id'=>$user->id, 'course'=>$site->id));
|
||||
$buttons[] = html_writer::link($url, $OUTPUT->pix_icon('t/edit', $stredit));
|
||||
}
|
||||
}
|
||||
@@ -398,7 +392,7 @@
|
||||
echo $OUTPUT->paging_bar($usercount, $page, $perpage, $baseurl);
|
||||
}
|
||||
if (has_capability('moodle/user:create', $sitecontext)) {
|
||||
$url = new moodle_url($securewwwroot . '/user/editadvanced.php', array('id' => -1));
|
||||
$url = new moodle_url($CFG->wwwroot . '/user/editadvanced.php', array('id' => -1));
|
||||
echo $OUTPUT->single_button($url, get_string('addnewuser'), 'get');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user