mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
51a348097d
Testing: ``` // Start with no Minerva config and no wgLogos defined in LocalSettings.php // Set $wgMinervaCustomLogos // Should trigger deprecation warning. $wgMinervaCustomLogos = [ 'copyright' => 'https://en.m.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-fr.svg', 'copyright-height' => 40, 'copyright-width' => 120, ]; // Set wgLogos without wordmark // Should trigger deprecation warning as $wgMinervaCustomLogos is still // defined. $wgLogos = [ '1x' => 'https://en.wikipedia.beta.wmflabs.org/static/images/project-logos/enwiki.png' ]; // Set wgLogos['wordmark'] // No deprecation warning. $wgMinervaCustomLogos will now be ignored // in favor of the new wordmark key. $wgLogos = [ '1x' => 'https://en.wikipedia.beta.wmflabs.org/static/images/project-logos/enwiki.png', 'wordmark' => [ 'src' => 'https://en.m.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-fr.svg', 'height' => 40, 'width' => 120, ], ]; // You can now safely drop $wgMinervaCustomLogos. ``` Depends-On: I66a971631c623cc94b58eb0e5e5bad804789bf1c Bug: T232140 Change-Id: I013bd0904fe8c55efa49d14e84cf06ec1412896f |
||
---|---|---|
.. | ||
SkinMinervaTest.php | ||
SkinUserPageHelperTest.php |