Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hermann Schwärzler
PluggableAuth
Commits
5bfb2dfe
Commit
5bfb2dfe
authored
Aug 06, 2015
by
addshore
Browse files
Remove use of deprecated wfRunHooks
Change-Id: Idcd96158f41c42a003929a4f30109ed286fe6dcb
parent
9bea6844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
PluggableAuth.class.php
PluggableAuth.class.php
+2
-2
PluggableAuthLogin.class.php
PluggableAuthLogin.class.php
+1
-1
No files found.
PluggableAuth.class.php
View file @
5bfb2dfe
...
...
@@ -230,7 +230,7 @@ abstract class PluggableAuth {
}
$authorized
=
true
;
wfRun
Hooks
(
'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
]
);
}
wfRun
Hooks
(
'UserLoginComplete'
,
array
(
&
$user
,
&
$injected_html
)
);
Hooks
::
run
(
'UserLoginComplete'
,
array
(
&
$user
,
&
$injected_html
)
);
}
else
{
$returnto
=
'Special:PluggableAuthNotAuthorized'
;
$params
=
array
(
'name'
=>
$user
->
mName
);
...
...
PluggableAuthLogin.class.php
View file @
5bfb2dfe
...
...
@@ -42,7 +42,7 @@ class PluggableAuthLogin extends UnlistedSpecialPage {
$returnto
=
$_SESSION
[
$session_variable
];
unset
(
$_SESSION
[
$session_variable
]
);
}
wfRun
Hooks
(
'UserLoginComplete'
,
array
(
&
$user
,
&
$injected_html
)
);
Hooks
::
run
(
'UserLoginComplete'
,
array
(
&
$user
,
&
$injected_html
)
);
PluggableAuth
::
redirect
(
$returnto
);
}
else
{
if
(
!
array_key_exists
(
$session_variable
,
$_SESSION
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment