portfolio MDL-20639 mahara plugin: update to mnet requirements after stricter mnet dispatcher checking

This commit is contained in:
Penny Leach
2009-11-18 13:35:58 +00:00
parent edf1fc350a
commit 8a709ecfc1
3 changed files with 7 additions and 9 deletions
+1 -4
View File
@@ -44,9 +44,6 @@ echo $OUTPUT->box_start();
echo $breakstring;
?>
<input type="hidden" name="exists[<?php echo $version['serviceid']; ?>]" value="1" />
<?php if ($name == 'pf') { // see MDL-16269 ?>
<input type="hidden" name="publish[<?php echo $version['serviceid']; ?>]" value="0" />
<?php } else { ?>
<input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/>
<?php
print_string('publish','mnet');
@@ -58,7 +55,7 @@ echo $OUTPUT->box_start();
print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
}
echo '<br />';
} ?>
?>
<input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/>
<?php
print_string('subscribe','mnet');
+3 -3
View File
@@ -1,8 +1,8 @@
<?php
$string['err_nomnethosts'] = 'This plugin relies on Moodle Networking peers with SSO IDP published, and portfolio and SSO SP subscribed, as well as the mnet authentication plugin. Any instances of this plugin has been set to not visible until this is fixed - you will need to set them to visible again manually. They cannot be used before this happens.';
$string['err_nomnethosts'] = 'This plugin relies on Moodle Networking peers with SSO IDP published, SSO SP subscribed, Portfolio services published <b>and</b> subscribed as well as the mnet authentication plugin. Any instances of this plugin has been set to not visible until this is fixed - you will need to set them to visible again manually. They cannot be used before this happens.';
$string['err_networkingoff'] = 'Moodle Networking is off entirely. Please enable it before trying to configure this pugin. Any instances of this plugin have been set to not visible until this is fixed - you will need to set them to visible again manully. They cannot be used until this happens';
$string['err_invalidhost'] = 'This plugin is misconfigured to point to an invalid (or deleted) mnet host. This plugin relies on Moodle Networking peers with SSO IDP published, and portfolio and SSO_SP subscribed.';
$string['err_invalidhost'] = 'This plugin is misconfigured to point to an invalid (or deleted) mnet host. This plugin relies on Moodle Networking peers with SSO IDP published, SSO_SP subscribed, and portfolio subscribed <b>and</b> published.';
$string['err_nomnetauth'] = 'The mnet authentication plugin is disabled, but is required for this service';
$string['failedtojump'] = 'Failed to start communication with remote server';
$string['failedtoping'] = 'Failed to start communication with remote server: $a';
@@ -11,7 +11,7 @@ $string['senddisallowed'] = 'You cannot transfer files to Mahara at this time';
$string['url'] = 'URL';
$string['pf_name'] = 'Portfolio services';
$string['pf_description'] = 'Allow users to push Moodle content to this host<br />'.
'Subscribe to this service to allow authenticated users in your site to push content to $a<br />' .
'Subscribe to <b>and</b> publish this service to allow authenticated users in your site to push content to $a<br />' .
'<ul><li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identify Provider) service to $a.</li>' .
'<li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Service Provider) service on $a</li>' .
'<li><em>Dependency</em>: You must also enable the mnet authentication plugin.</li></ul><br />';
+3 -2
View File
@@ -126,8 +126,9 @@ class portfolio_plugin_mahara extends portfolio_plugin_pull_base {
a.name = ? AND
s1.name = ? AND hs1.publish = ? AND
s2.name = ? AND hs2.subscribe = ? AND
s3.name = ? AND hs3.subscribe = ?',
array($CFG->mnet_localhost_id, 'mahara', 'sso_idp', 1, 'sso_sp', 1, 'pf', 1));;
s3.name = ? AND hs3.subscribe = ? AND
s3.name = ? AND hs3.publish = ?',
array($CFG->mnet_localhost_id, 'mahara', 'sso_idp', 1, 'sso_sp', 1, 'pf', 1, 'pf', 1));
if (empty($hosts)) { $hosts = array(); }
if (isset($this) && is_object($this)) {
$this->hosts = $hosts;