mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
adding missing global $DB in mnet functions
This commit is contained in:
parent
e64de55dec
commit
bd2bf45169
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ function ip_in_range($address, $network, $mask) {
|
||||||
* constant otherwise
|
* constant otherwise
|
||||||
*/
|
*/
|
||||||
function mnet_permit_rpc_call($includefile, $functionname, $class=false) {
|
function mnet_permit_rpc_call($includefile, $functionname, $class=false) {
|
||||||
global $CFG, $MNET_REMOTE_CLIENT;
|
global $CFG, $MNET_REMOTE_CLIENT, $DB;
|
||||||
|
|
||||||
if (file_exists($CFG->dirroot . $includefile)) {
|
if (file_exists($CFG->dirroot . $includefile)) {
|
||||||
include_once $CFG->dirroot . $includefile;
|
include_once $CFG->dirroot . $includefile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue