dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b346d
)
Only show prefershttps if IP can use HTTPS
author
Chad Horohoe
<chadh@wikimedia.org>
Fri, 23 Aug 2013 19:34:06 +0000
(12:34 -0700)
committer
Chad Horohoe
<chadh@wikimedia.org>
Fri, 23 Aug 2013 19:34:06 +0000
(12:34 -0700)
Change-Id: I7493a329d35fad3f17aac2df935f4f9306828884
includes/Preferences.php
patch
|
blob
|
history
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
9791d8b
..
4d034fa
100644
(file)
--- a/
includes/Preferences.php
+++ b/
includes/Preferences.php
@@
-315,7
+315,7
@@
class Preferences {
);
}
// Only show preferhttps if secure login is turned on
- if ( $wgSecureLogin ) {
+ if ( $wgSecureLogin
&& wfCanIPUseHTTPS( $context->getRequest()->getIP() )
) {
$defaultPreferences['prefershttps'] = array(
'type' => 'toggle',
'label-message' => 'tog-prefershttps',