mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'MDL-67024-master' of git://github.com/farhan6318/moodle
This commit is contained in:
commit
e17046d2c6
1 changed files with 2 additions and 1 deletions
|
@ -1609,7 +1609,8 @@ class moodle_page {
|
|||
}
|
||||
|
||||
$mnetpeertheme = '';
|
||||
if (isloggedin() and isset($CFG->mnet_localhost_id) and $USER->mnethostid != $CFG->mnet_localhost_id) {
|
||||
$mnetvarsok = isset($CFG->mnet_localhost_id) && isset($USER->mnethostid);
|
||||
if (isloggedin() and $mnetvarsok and $USER->mnethostid != $CFG->mnet_localhost_id) {
|
||||
require_once($CFG->dirroot.'/mnet/peer.php');
|
||||
$mnetpeer = new mnet_peer();
|
||||
$mnetpeer->set_id($USER->mnethostid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue