portfolio MDL-19356 first cut at changing the two google plugins to not depend on session
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user