IAlex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/132624

Change subject: Deprecate $wgSessionStarted
......................................................................

Deprecate $wgSessionStarted

Wrape it in a DeprecatedGlobal object to notify extensions using it

Change-Id: I5081e79e30e01c97aa0e59b106cc75e9d1ba951a
Replacement: session_id() != ''
---
M includes/Setup.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/24/132624/1

diff --git a/includes/Setup.php b/includes/Setup.php
index 18d1e33..430aad9 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -554,9 +554,9 @@
 if ( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode ) {
        if ( $wgRequest->checkSessionCookie() || isset( 
$_COOKIE[$wgCookiePrefix . 'Token'] ) ) {
                wfSetupSession();
-               $wgSessionStarted = true;
+               $wgSessionStarted = new DeprecatedGlobal( 'wgSessionStarted', 
true, '1.24' );
        } else {
-               $wgSessionStarted = false;
+               $wgSessionStarted = new DeprecatedGlobal( 'wgSessionStarted', 
false, '1.24' );
        }
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/132624
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5081e79e30e01c97aa0e59b106cc75e9d1ba951a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <coderev...@emsenhuber.ch>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to