Merge "XMPValidate: fix undefined variable for logger"
[lhc/web/wiklou.git] / includes / MediaWiki.php
index 8385a06..7846ca4 100644 (file)
@@ -671,10 +671,8 @@ class MediaWiki {
                if (
                        $request->getProtocol() == 'http' &&
                        (
-                               $request->getSession()->shouldForceHTTPS() ||
-                               // Check the cookie manually, for paranoia
                                $request->getCookie( 'forceHTTPS', '' ) ||
-                               // check for prefixed version that was used for a time in older MW versions
+                               // check for prefixed version for currently logged in users
                                $request->getCookie( 'forceHTTPS' ) ||
                                // Avoid checking the user and groups unless it's enabled.
                                (