stable

Clone or download

Read-only

story #8433: redirect admin to language choice

Do not stop anymore the end user in their mediawiki browsing session: If project has language set: use it Else: If platform has only one available language: Save for the project use it Else: If user is admin(*): Redirect to mw administration and display a feedback message Else: Use current user language (*) project admin, site admin or mediawiki admin (perms delegation) Change-Id: Ibf47cfa95a5e23c73cfa874cb63d0fe3526a770f

Modified Files

Name
D plugins/mediawiki/include/AlternativePagePresenter.php +0 −61 Go to diff View file
M plugins/mediawiki/include/MediawikiAdminController.class.php +7 −1 Go to diff View file
M plugins/mediawiki/include/MediawikiLanguageManager.php +22 −15 Go to diff View file
D plugins/mediawiki/include/MediawikiWelcomePageManager.php +0 −105 Go to diff View file
M plugins/mediawiki/include/ServiceMediawiki.class.php +4 −5 Go to diff View file
M plugins/mediawiki/site-content/en_US/mediawiki.tab +1 −2 Go to diff View file
M plugins/mediawiki/site-content/fr_FR/mediawiki.tab +1 −2 Go to diff View file
D plugins/mediawiki/templates/alternative-welcome-page.mustache +0 −15 Go to diff View file
A plugins/mediawiki/tests/MediawikiLanguageManagerTest.php +94 −0 Go to diff View file
D plugins/mediawiki/tests/MediawikiWelcomePageManagerTest.php +0 −85 Go to diff View file
M plugins/mediawiki/www/LocalSettings.php +3 −14 Go to diff View file
M plugins/mediawiki/www/index.php +1 −4 Go to diff View file