mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
auth MDL-19788 Upgrade deprecated function calls
This commit is contained in:
parent
9e492db050
commit
80d13119ba
@ -66,7 +66,7 @@
|
||||
}
|
||||
|
||||
/// Go to my-moodle page instead of homepage if mymoodleredirect enabled
|
||||
if (!has_capability('moodle/site:config',get_context_instance(CONTEXT_SYSTEM)) and !empty($CFG->mymoodleredirect) and !isguest()) {
|
||||
if (!has_capability('moodle/site:config',get_context_instance(CONTEXT_SYSTEM)) and !empty($CFG->mymoodleredirect) and !isguestuser()) {
|
||||
if ($urltogo == $CFG->wwwroot or $urltogo == $CFG->wwwroot.'/' or $urltogo == $CFG->wwwroot.'/index.php') {
|
||||
$urltogo = $CFG->wwwroot.'/my/';
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ httpsrequired();
|
||||
|
||||
/// Define variables used in page
|
||||
if (!$site = get_site()) {
|
||||
error("No site found!");
|
||||
print_error('nosite');
|
||||
}
|
||||
|
||||
if (empty($CFG->langmenu)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user