diff --git a/admin/mnet/peer_forms.php b/admin/mnet/peer_forms.php index a9339b05104..b50f869c79d 100644 --- a/admin/mnet/peer_forms.php +++ b/admin/mnet/peer_forms.php @@ -60,7 +60,8 @@ class mnet_simple_host_form extends moodleform { } if ($host = $DB->get_record('mnet_host', array('wwwroot' => $wwwroot))) { global $CFG; - return array('wwwroot' => get_string('hostexists', 'mnet', $CFG->wwwroot . '/admin/mnet/peers.php?hostid=' . $host->id)); + return array('wwwroot' => get_string('hostexists', 'mnet', + $CFG->wwwroot . '/' . $CFG->admin . '/mnet/peers.php?hostid=' . $host->id)); } return array(); } diff --git a/admin/mnet/peers.php b/admin/mnet/peers.php index 24ef9b6af9a..de3d899d31f 100644 --- a/admin/mnet/peers.php +++ b/admin/mnet/peers.php @@ -109,7 +109,7 @@ if (!empty($hostid)) { $mnet_peer->set_id($hostid); echo $OUTPUT->header(); $currenttab = 'mnetdetails'; - require_once($CFG->dirroot . '/admin/mnet/tabs.php'); + require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php'); if ($hostid != $CFG->mnet_all_hosts_id) { $mnet_peer->currentkey = mnet_get_public_key($mnet_peer->wwwroot, $mnet_peer->application); @@ -144,7 +144,7 @@ if (empty($noreviewform) && $id = optional_param('id', 0, PARAM_INT)) { // we're editing an existing one, so set up the tabs $currenttab = 'mnetdetails'; $mnet_peer->set_id($id); - require_once($CFG->dirroot . '/admin/mnet/tabs.php'); + require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php'); } else if (empty($noreviewform) && ($wwwroot = optional_param('wwwroot', '', PARAM_URL)) && ($applicationid = optional_param('applicationid', 0, PARAM_INT))) { $application = $DB->get_field('mnet_application', 'name', array('id'=>$applicationid)); $mnet_peer->bootstrap($wwwroot, null, $application); diff --git a/admin/mnet/profilefields.php b/admin/mnet/profilefields.php index 5f5fd6b1ec0..7c2f066247b 100644 --- a/admin/mnet/profilefields.php +++ b/admin/mnet/profilefields.php @@ -26,7 +26,7 @@ require(dirname(dirname(dirname(__FILE__))).'/config.php'); require_once($CFG->libdir.'/adminlib.php'); -require_once($CFG->dirroot . '/admin/mnet/profilefields_form.php'); +require_once($CFG->dirroot . '/' . $CFG->admin .'/mnet/profilefields_form.php'); $mnet = get_mnet_environment(); require_login(); diff --git a/admin/mnet/services.php b/admin/mnet/services.php index cdc4fe3a5c2..e86d486b346 100644 --- a/admin/mnet/services.php +++ b/admin/mnet/services.php @@ -27,7 +27,7 @@ require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); require_once($CFG->libdir.'/adminlib.php'); -require_once($CFG->dirroot . '/admin/mnet/services_form.php'); +require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/services_form.php'); $mnet = get_mnet_environment(); require_login(); @@ -82,7 +82,7 @@ if ($formdata = $mform->get_data()) { echo $OUTPUT->header(); $currenttab = 'mnetservices'; -require_once($CFG->dirroot . '/admin/mnet/tabs.php'); +require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php'); echo $OUTPUT->box_start(); $s = mnet_get_service_info($mnet_peer, false); // basic data only $mform->set_data($s);