Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: Replace usage of wfSetupSession()
......................................................................

Replace usage of wfSetupSession()

Bug: T132251
Change-Id: Id750d2659b6231935fd13489563c1214a139924d
---
M special/SpecialCentralNoticeBanners.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/79/282479/1

diff --git a/special/SpecialCentralNoticeBanners.php 
b/special/SpecialCentralNoticeBanners.php
old mode 100644
new mode 100755
index 9b72f9d..6820a97
--- a/special/SpecialCentralNoticeBanners.php
+++ b/special/SpecialCentralNoticeBanners.php
@@ -23,7 +23,7 @@
                SpecialPage::__construct( 'CentralNoticeBanners' );
 
                // Make sure we have a session
-               wfSetupSession();
+               
\MediaWiki\Session\SessionManager::getGlobalSession()->persist();
 
                // Load things that may have been serialized into the session
                $this->bannerLanguagePreview = $this->getCNSessionVar(

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id750d2659b6231935fd13489563c1214a139924d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>

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

Reply via email to