Unverified Commit ee48b526 authored by Tobias Haider's avatar Tobias Haider Committed by GitHub
Browse files

Merge pull request #156 from Ammarpad/patch-1

Avoid use of wfSetupSession()
parents 04fadb16 80da89eb
......@@ -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