]> git.mjollnir.org Git - moodle.git/commitdiff
portfolio MDL-19356 first cut at changing the two google plugins to not depend...
authorPenny Leach <penny@liip.ch>
Wed, 18 Nov 2009 10:07:30 +0000 (10:07 +0000)
committerPenny Leach <penny@liip.ch>
Wed, 18 Nov 2009 10:07:30 +0000 (10:07 +0000)
portfolio/type/googledocs/lib.php
portfolio/type/picasa/lib.php

index 34e9ad12e38ae254710b7beeb00bf3bb4979b613..adfcc5507cef5516fec83f5d09bc534519bab5f3 100644 (file)
@@ -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) {
index ac539d2a5df99100b0f87a056d4e4f11ba8e8a98..763945a527b1248c33c863d84ea8039f99948925 100644 (file)
@@ -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) {