X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebRequest.php;h=3bbdc3f312c41ebcfd21ccb9637109405d0049dd;hb=3a8a986e35ab5ae1328b2147ec31fc2d27caf9b8;hp=3ef3bc1e0be49b58a62748473a8b9de3a7d1b271;hpb=97c2bc99ea4f5d87b4e8a4cac8ccbc3ea637f237;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 3ef3bc1e0b..3bbdc3f312 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -238,7 +238,7 @@ class WebRequest { * This is for use prior to Setup.php, when no WebRequest object is available. * At other times, use the non-static function getProtocol(). * - * @return array + * @return string */ public static function detectProtocol() { if ( ( !empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' ) || @@ -757,22 +757,6 @@ class WebRequest { return $this->sessionId; } - /** - * Returns true if the request has a persistent session. - * This does not necessarily mean that the user is logged in! - * - * @deprecated since 1.27, use - * \MediaWiki\Session\SessionManager::singleton()->getPersistedSessionId() - * instead. - * @return bool - */ - public function checkSessionCookie() { - global $wgInitialSessionId; - wfDeprecated( __METHOD__, '1.27' ); - return $wgInitialSessionId !== null && - $this->getSession()->getId() === (string)$wgInitialSessionId; - } - /** * Get a cookie from the $_COOKIE jar * @@ -1099,6 +1083,7 @@ class WebRequest { header( 'Content-Type: text/html' ); $encUrl = htmlspecialchars( $url ); echo << Security redirect