diff options
author | Valentin Popov <info@valentineus.link> | 2018-06-10 14:22:56 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-06-10 14:22:56 +0300 |
commit | 9afca453779700f8ca9a50a2ba1bb29619482dd5 (patch) | |
tree | 08bb975f169b9f8c9dadc561ef3e408154a7ade7 | |
parent | b7f6d2025946171955dcad01d7b6a3d0b150f992 (diff) | |
download | auth_link-9afca453779700f8ca9a50a2ba1bb29619482dd5.tar.xz auth_link-9afca453779700f8ca9a50a2ba1bb29619482dd5.zip |
Added saving of GET variables
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -152,10 +152,10 @@ class auth_plugin_link extends auth_plugin_base { public function redirect_user() { global $CFG, $SESSION; - $redirect = $CFG->wwwroot; + $redirect = new moodle_url($CFG->wwwroot, $_GET); if (isset($SESSION->wantsurl)) { - $redirect = $SESSION->wantsurl; + $redirect = new moodle_url($SESSION->wantsurl, $_GET); } else if (isset($_GET['wantsurl'])) { $redirect = htmlspecialchars($_GET['wantsurl']); } |