New hook, UserRequiresHTTPS
[lhc/web/wiklou.git] / includes / User.php
index dcfc511..2923026 100644 (file)
@@ -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;
                }
        }