stable

Clone or download

Read-only

Do not trust default theme variant

As anonymous, go to login page. If sys_default_theme_variant uses a Dark* theme variant, then current theme is Orange. If sys_default_theme_variant uses a not allowed variant (aka not listed in sys_available_theme_variants), then current theme is Orange. Else use sys_default_theme_variant. Now there is not anymore direct usage of sys_default_theme_variant variable. Fix request #11650: Dark* theme variants are useless Change-Id: Ib6ce888646a5e039096305818a535b19c866d29a

Modified Files

Name
M plugins/mediawiki/www/skins/Tuleap/Tuleap.php +4 −15 Go to diff View file
M plugins/mediawiki/www/skins/Tuleap123/Tuleap123.php +4 −15 Go to diff View file
M src/common/OpenGraph/OpenGraphPresenter.php +2 −1 Go to diff View file
M src/common/layout/ThemeVariant.class.php +16 −10 Go to diff View file
M src/common/layout/ThemeVariantColor.php +7 −0 Go to diff View file
M src/common/mail/MailPresenterFactory.class.php +3 −2 Go to diff View file