Unverified Commit 80da89eb authored by Ammar Abdulhamid's avatar Ammar Abdulhamid Committed by GitHub
Browse files

Avoid use of wfSetupSession()

This global function has been hard deprecated  and is slated for removal in [T249082](https://phabricator.wikimedia.org/T249082)
parent 9441ca61
......@@ -21,7 +21,7 @@
* @file
* @ingroup Skins
*/
use MediaWiki\Session\SessionManager;
/**
* QuickTemplate subclass for Vector
* @ingroup Skins
......@@ -946,10 +946,8 @@ class TweekiTemplate extends BaseTemplate {
/**
* Render Login-ext
*/
function renderLoginExt( $skin, $context ) {
if ( session_id() == '' ) {
wfSetupSession();
}
function renderLoginExt( $skin, $context ) {
SessionManager::getGlobalSession()->persist();
//build path for form action
$returntotitle = $skin->getSkin()->getTitle();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment