Permalink
Browse files

Fixed return URL for OAuth & OAuth2 modules to keep the module parame…

…ter. Closed #161
  • Loading branch information...
sergeychernyshev committed Jul 27, 2016
1 parent 2873eae commit bbbc37a14d83159fd9801369569f5b148fa1edfe
Showing with 2 additions and 2 deletions.
  1. +1 −1 oauth2_callback.php
  2. +1 −1 oauth_callback.php
View
@@ -101,7 +101,7 @@
User::clearReturn();
if (is_null($return) && !is_null($current_user)) {
$return = UserConfig::$USERSROOTURL.'/edit.php';
$return = UserConfig::$USERSROOTURL.'/edit.php' . (array_key_exists('module', $_GET) ? '?module='.$_GET['module'] : '');
}
if (!is_null($return))
View
@@ -116,7 +116,7 @@
User::clearReturn();
if (is_null($return) && !is_null($current_user)) {
$return = UserConfig::$USERSROOTURL.'/edit.php';
$return = UserConfig::$USERSROOTURL.'/edit.php' . (array_key_exists('module', $_GET) ? '?module='.$_GET['module'] : '');
}
if (!is_null($return))

0 comments on commit bbbc37a

Please sign in to comment.