Commit 5bfb2dfe authored by addshore's avatar addshore
Browse files

Remove use of deprecated wfRunHooks

Change-Id: Idcd96158f41c42a003929a4f30109ed286fe6dcb
parent 9bea6844
......@@ -230,7 +230,7 @@ abstract class PluggableAuth {
}
$authorized = true;
wfRunHooks( 'PluggableAuthUserAuthorization', array( $user,
Hooks::run( 'PluggableAuthUserAuthorization', array( $user,
&$authorized ) );
$returnto = null;
$params = null;
......@@ -253,7 +253,7 @@ abstract class PluggableAuth {
$returnto = $_SESSION[$session_variable];
unset( $_SESSION[$session_variable] );
}
wfRunHooks( 'UserLoginComplete', array( &$user, &$injected_html ) );
Hooks::run( 'UserLoginComplete', array( &$user, &$injected_html ) );
} else {
$returnto = 'Special:PluggableAuthNotAuthorized';
$params = array( 'name' => $user->mName );
......
......@@ -42,7 +42,7 @@ class PluggableAuthLogin extends UnlistedSpecialPage {
$returnto = $_SESSION[$session_variable];
unset( $_SESSION[$session_variable] );
}
wfRunHooks( 'UserLoginComplete', array( &$user, &$injected_html ) );
Hooks::run( 'UserLoginComplete', array( &$user, &$injected_html ) );
PluggableAuth::redirect( $returnto );
} else {
if ( !array_key_exists( $session_variable, $_SESSION ) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment