diff --git a/login.php b/login.php index 1f3971a92..d36c105c5 100644 --- a/login.php +++ b/login.php @@ -33,7 +33,8 @@ // @codingStandardsIgnoreEnd require('setup.php'); -$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL); // Overrides $SESSION->wantsurl if given. +// Get the wants if set. May be set as either wantsurl or wants from the button on the login page. +$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL) ?: optional_param('wants', '', PARAM_LOCALURL); if ($wantsurl !== '') { // This is later used in core_login_get_return_url(). $SESSION->wantsurl = (new moodle_url($wantsurl))->out(false); diff --git a/version.php b/version.php index 6a5001731..1cc988b73 100644 --- a/version.php +++ b/version.php @@ -24,8 +24,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2025040403; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 2025040403; // Match release exactly to version. +$plugin->version = 2025040404; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 2025040404; // Match release exactly to version. $plugin->requires = 2024100700; // Requires Moodle 4.5 $plugin->component = 'auth_saml2'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE;