dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New hook, UserRequiresHTTPS
[lhc/web/wiklou.git]
/
includes
/
User.php
diff --git
a/includes/User.php
b/includes/User.php
index
dcfc511
..
2923026
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2610,7
+2610,9
@@
class User {
if ( !$wgSecureLogin ) {
return false;
} else {
- return $this->getBoolOption( 'prefershttps' );
+ $https = $this->getBoolOption( 'prefershttps' );
+ wfRunHooks( 'UserRequiresHTTPS', array( $this, &$https ) );
+ return $https;
}
}