Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need to remove legacy module in 1.35 #115

Merged
merged 1 commit into from Dec 31, 2020

Conversation

jdlrobson
Copy link
Contributor

(disclaimer: untested - couldn't get this working locally)

This module is no longer added to skins so you shouldn't need to remove this module provided you bump the mediawiki dependency

Fixes: #110

@JeroenDeDauw
Copy link
Member

couldn't get this working locally

What problems did you run into?

@jdlrobson
Copy link
Contributor Author

Just with my local setup. Didn't try too hard. Some issues with the composer install. Said missing dependency mediawiki/mediawiki or something like that.

@jdlrobson
Copy link
Contributor Author

Travis is complaining about same error I was running into so I feel a little better :)

@JeroenDeDauw
Copy link
Member

Yeah you can't just do composer install in a clone of this repo. It needs to be installed into MW. So all good.

We do not want to drop support with MW < 1.35 yet, so this PR will sit here a while. It is however appreciated.

@jdlrobson
Copy link
Contributor Author

@JeroenDeDauw it would be possible to support 1.35 and the current version with a few checks of wgVersion. Would an amended patch to that effect unstall this?

@JeroenDeDauw
Copy link
Member

Yes. Stalled only because it breaks compat with MW 1.31

Using wgVersion determine the current version of MediaWiki.
In the case of < 1.35 use initPage (has been around since 1.31)
instead of setupSkinUserCss (deprecated since 1.31)

For > 1.35 use skin styles registration via options in
SetupAfterCache.

When support is dropped for < 1.35 all the version guarded
code can be dropped.

Fixes: ProfessionalWiki#202
Fixes: ProfessionalWiki#110
@jdlrobson
Copy link
Contributor Author

I've amended this to support < 1.35. Have also fixed #202 while I'm here since it's related :)

@JeroenDeDauw JeroenDeDauw merged commit 40a60c9 into ProfessionalWiki:master Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Change to skins
2 participants