Closed jdarwood007 closed 12 years ago
Not knowing mediawiki, there are two things that come to mind. Either use a version variable if MW provides one, or do a function_exists('wfSetupSession')
and proceed from there. Do we know if $user->setCookies()
also changed, probably to wfSetCookies()
?
Also, is sm.org going to upgrade to 1.18, or is there a test installation somewhere? That would be the quickest way to solve this.
Well at least in 1.17 the method in the User class is as follows:
/**
* @deprecated Use wfSetupSession().
*/
function SetupSession() {
wfDeprecated( __METHOD__ );
wfSetupSession();
}
So we should be able to safely replace this since it was finally removed.
Cookies have not changed.
According to Paracelsus, in MW 1.18, they changed the following code:
Will need to research this.