portfolio MDL-19356 first cut at changing the two google plugins to not depend on session

This commit is contained in:
Penny Leach 2009-11-18 10:07:30 +00:00
parent 892234168e
commit 63d09fc5f6
2 changed files with 2 additions and 2 deletions

View 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) {

View 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) {