From 8a709ecfc1364a8152aa90f518453e8583965a97 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Wed, 18 Nov 2009 13:35:58 +0000 Subject: [PATCH] portfolio MDL-20639 mahara plugin: update to mnet requirements after stricter mnet dispatcher checking --- admin/mnet/mnet_services.html | 5 +---- lang/en_utf8/portfolio_mahara.php | 6 +++--- portfolio/mahara/lib.php | 5 +++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/admin/mnet/mnet_services.html b/admin/mnet/mnet_services.html index 3f23bafb2f..2706eb415a 100644 --- a/admin/mnet/mnet_services.html +++ b/admin/mnet/mnet_services.html @@ -44,9 +44,6 @@ echo $OUTPUT->box_start(); echo $breakstring; ?> - - - /> box_start(); print_string("enabled_for_all",'mnet',!empty($version['I_publish'])); } echo '
'; -} ?> +?> /> and 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 and 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
'. - 'Subscribe to this service to allow authenticated users in your site to push content to $a
' . + 'Subscribe to and publish this service to allow authenticated users in your site to push content to $a
' . '
'; diff --git a/portfolio/mahara/lib.php b/portfolio/mahara/lib.php index 5712756630..2a4b61261f 100644 --- a/portfolio/mahara/lib.php +++ b/portfolio/mahara/lib.php @@ -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; -- 2.39.5