mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
portfolio MDL-19356 first cut at changing the two google plugins to not depend on session
This commit is contained in:
parent
892234168e
commit
63d09fc5f6
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user