From 65909966e135937dd08ee788c2fadc2e76d32a54 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Thu, 19 Nov 2009 07:31:43 +0000 Subject: [PATCH] portfolio MDL-20905 updated box.net docs to explain new returnurl --- lang/en_utf8/help/portfolio/boxnet_apikey.html | 3 ++- lang/en_utf8/portfolio_boxnet.php | 2 +- portfolio/boxnet/lib.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lang/en_utf8/help/portfolio/boxnet_apikey.html b/lang/en_utf8/help/portfolio/boxnet_apikey.html index f7ab8cff5e..575df8762c 100644 --- a/lang/en_utf8/help/portfolio/boxnet_apikey.html +++ b/lang/en_utf8/help/portfolio/boxnet_apikey.html @@ -3,7 +3,8 @@ developer account. You can then navigate to My projects, and create a new one.

For all the settings, Moodle doesn't care what you put in except for the -callback url, which should be $CFG->wwwroot/portfolio/add.php?postcontrol=1.

+callback url, which should be:
+$CFG->wwwroot/portfolio/add.php?postcontrol=1&type=boxnet.

Box.net will append the relevant authentication tokens to the url (detecting it already contains ? and everything already)

diff --git a/lang/en_utf8/portfolio_boxnet.php b/lang/en_utf8/portfolio_boxnet.php index 853ad9b559..ec72ac4ac0 100644 --- a/lang/en_utf8/portfolio_boxnet.php +++ b/lang/en_utf8/portfolio_boxnet.php @@ -1,7 +1,7 @@ To configure Box.net, visit enabled.box.net and log in.

Under My Projects you will need to create one new project for each Moodle site.

The only setting that matters is the callback url, which should be $a. You can put anything you like for the other settings. Save it and you\'re done!'; $string['err_noapikey'] = 'There is no API Key configured for this plugin. You can get one of these from http://enabled.box.net'; $string['existingfolder'] = 'Exiting folder to put file(s) into'; diff --git a/portfolio/boxnet/lib.php b/portfolio/boxnet/lib.php index f3a08e1e57..76e58240e7 100644 --- a/portfolio/boxnet/lib.php +++ b/portfolio/boxnet/lib.php @@ -116,7 +116,7 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base { ); $mform->setHelpButton('apikey', $helpparams); $mform->addRule('apikey', $strrequired, 'required', null, 'client'); - $mform->addElement('warning', 'apikeyhelp', 'smalltext', get_string('apikeyinlinehelp', 'portfolio_boxnet', $CFG->wwwroot . '/portfolio/add.php?postcontrol=1')); + $mform->addElement('warning', 'apikeyhelp', 'smalltext', get_string('apikeyinlinehelp', 'portfolio_boxnet', $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet')); } -- 2.39.5