From: Penny Leach Date: Wed, 18 Nov 2009 10:07:30 +0000 (+0000) Subject: portfolio MDL-19356 first cut at changing the two google plugins to not depend... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=63d09fc5f646809cd8d8125721a6862f8d65d744;p=moodle.git portfolio MDL-19356 first cut at changing the two google plugins to not depend on session --- diff --git a/portfolio/type/googledocs/lib.php b/portfolio/type/googledocs/lib.php index 34e9ad12e3..adfcc5507c 100644 --- a/portfolio/type/googledocs/lib.php +++ b/portfolio/type/googledocs/lib.php @@ -66,7 +66,7 @@ class portfolio_plugin_googledocs extends portfolio_plugin_push_base { } } - return google_authsub::login_url($CFG->wwwroot.'/portfolio/add.php?postcontrol=1', google_docs::REALM); + return google_authsub::login_url($CFG->wwwroot.'/portfolio/add.php?postcontrol=1&id=' . $this->exporter->get('id') . '&sesskey=' . sesskey(), google_docs::REALM); } public function post_control($stage, $params) { diff --git a/portfolio/type/picasa/lib.php b/portfolio/type/picasa/lib.php index ac539d2a5d..763945a527 100644 --- a/portfolio/type/picasa/lib.php +++ b/portfolio/type/picasa/lib.php @@ -66,7 +66,7 @@ class portfolio_plugin_picasa extends portfolio_plugin_push_base { } } - return google_authsub::login_url($CFG->wwwroot.'/portfolio/add.php?postcontrol=1', google_picasa::REALM); + return google_authsub::login_url($CFG->wwwroot.'/portfolio/add.php?postcontrol=1&id=' . $this->exporter->get('id') . '&sesskey=' . sesskey(), google_picasa::REALM); } public function post_control($stage, $params) {