mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
mnet MDL-21098 fixed quite a few issues in the mnet installer and testclient. Rebumped all plugin versions that use mnet to get the services reinstalled
This commit is contained in:
parent
24409f74b2
commit
677b6321af
@ -127,7 +127,7 @@ if (!empty($hostid) && array_key_exists($hostid, $hosts)) {
|
||||
|
||||
$mnet_request->set_method('system/listMethods');
|
||||
if (isset($servicename) && array_key_exists($servicename, $serviceinfo)) {
|
||||
echo $OUTPUT->heading(get_string('methodsavailableonhostinservice', 'mnet', array('host' => $host->wwwroot, 'service' => $servicename)));
|
||||
echo $OUTPUT->heading(get_string('methodsavailableonhostinservice', 'mnet', (object)array('host' => $host->wwwroot, 'service' => $servicename)));
|
||||
$service = $serviceinfo[$servicename];
|
||||
$mnet_request->add_param($servicename, 'string');
|
||||
} else {
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
|
||||
$plugin->version = 2010012902;
|
||||
$plugin->version = 2010021800;
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
|
||||
$plugin->version = 2010012902;
|
||||
$plugin->version = 2010021800;
|
||||
|
@ -394,7 +394,7 @@ $string['restricteduser'] = 'Sorry, but your current account \"$a\" is restricte
|
||||
$string['restrictedcontextexception'] = 'Sorry, execution of external function violates context restriction.';
|
||||
$string['reportnotavailable'] = 'This type of report is only available for the site course';
|
||||
$string['reverseproxyabused'] = 'Reverse proxy enabled, server can not be accessed directly, sorry.<br />Please contact server administrator.';
|
||||
$string['rpcerror'] = 'RPC enrol/mnet/available_courses: ($a)';
|
||||
$string['rpcerror'] = 'Ooops! Your MNET communication has failed! Here\'s that error message to pass on to your administrator: $a';
|
||||
$string['scheduledbackupsdisabled'] = 'Scheduled backups have been disabled by the server admin';
|
||||
$string['sectionnotexist'] = 'This section does not exist';
|
||||
$string['secretalreadyused'] = 'Change password confirmation link was already used, password was not changed';
|
||||
|
@ -1417,29 +1417,28 @@ function upgrade_plugin_mnet_functions($component) {
|
||||
} else {
|
||||
$dataobject->id = $DB->insert_record('mnet_rpc', $dataobject, true);
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($publishmethodservices[$dataobject->functionname] as $service) {
|
||||
if ($serviceobj = $DB->get_record('mnet_service', array('name'=>$service['servicename']))) {
|
||||
$serviceobj->apiversion = $service['apiversion'];
|
||||
$DB->update_record('mnet_service', $serviceobj);
|
||||
} else {
|
||||
$serviceobj = new stdClass();
|
||||
$serviceobj->name = $service['servicename'];
|
||||
$serviceobj->apiversion = $service['apiversion'];
|
||||
$serviceobj->offer = 1;
|
||||
$serviceobj->id = $DB->insert_record('mnet_service', $serviceobj);
|
||||
}
|
||||
$servicecache[$service['servicename']] = $serviceobj;
|
||||
if (!$DB->record_exists('mnet_service2rpc', array('rpcid'=>$dataobject->id, 'serviceid'=>$serviceobj->id))) {
|
||||
$obj = new stdClass();
|
||||
$obj->rpcid = $dataobject->id;
|
||||
$obj->serviceid = $serviceobj->id;
|
||||
$DB->insert_record('mnet_service2rpc', $obj, true);
|
||||
foreach ($publishmethodservices[$dataobject->functionname] as $service) {
|
||||
if ($serviceobj = $DB->get_record('mnet_service', array('name'=>$service['servicename']))) {
|
||||
$serviceobj->apiversion = $service['apiversion'];
|
||||
$DB->update_record('mnet_service', $serviceobj);
|
||||
} else {
|
||||
$serviceobj = new stdClass();
|
||||
$serviceobj->name = $service['servicename'];
|
||||
$serviceobj->apiversion = $service['apiversion'];
|
||||
$serviceobj->offer = 1;
|
||||
$serviceobj->id = $DB->insert_record('mnet_service', $serviceobj);
|
||||
}
|
||||
$servicecache[$service['servicename']] = $serviceobj;
|
||||
if (!$DB->record_exists('mnet_service2rpc', array('rpcid'=>$dataobject->id, 'serviceid'=>$serviceobj->id))) {
|
||||
$obj = new stdClass();
|
||||
$obj->rpcid = $dataobject->id;
|
||||
$obj->serviceid = $serviceobj->id;
|
||||
$DB->insert_record('mnet_service2rpc', $obj, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// finished with methods we publish, now do subscribable methods
|
||||
foreach($subscribes as $service => $methods) {
|
||||
if (!array_key_exists($service, $servicecache)) {
|
||||
@ -1468,7 +1467,7 @@ function upgrade_plugin_mnet_functions($component) {
|
||||
$obj->serviceid = $serviceobj->id;
|
||||
$DB->insert_record('mnet_remote_service2rpc', $obj, true);
|
||||
}
|
||||
$subscribemethodservices[$method][] = $servicename;
|
||||
$subscribemethodservices[$method][] = $service;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$plugin->version = 2010012902;
|
||||
$plugin->version = 2010021800;
|
||||
$plugin->requires = 2008072500;
|
||||
$plugin->cron = 0;
|
||||
|
||||
|
@ -15,4 +15,4 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$plugin->version = 2010012902;
|
||||
$plugin->version = 2010021800;
|
||||
|
@ -15,4 +15,4 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$plugin->version = 2010012902;
|
||||
$plugin->version = 2010021800;
|
||||
|
Loading…
x
Reference in New Issue
Block a user