LocalSettings.php Tweaks: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 8: | Line 8: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sed -i.bak 's/\$wgDefaultSkin = "MinervaNeue";/\$wgDefaultSkin = "minerva";/' LocalSettings.php | sed -i.bak 's/\$wgDefaultSkin = "MinervaNeue";/\$wgDefaultSkin = "minerva";/' LocalSettings.php | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 19:54, 4 August 2026
A running log of manual edits made to LocalSettings.php, why they were made, and how to reverse them if needed.
Skin: MinervaNeue → minerva
Why: $wgDefaultSkin expects the internal skin key, not its display name. The mobile skin is labeled "MinervaNeue" in the UI, but its actual key is minerva. Setting the display name instead of the key causes MediaWiki to silently fall back to the default skin.
Command:
sed -i.bak 's/\$wgDefaultSkin = "MinervaNeue";/\$wgDefaultSkin = "minerva";/' LocalSettings.php
Notes:
- Creates a backup at
LocalSettings.php.bakbefore editing in place. - Run from the directory containing
LocalSettings.php. - To roll back:
mv LocalSettings.php.bak LocalSettings.php
Template for Future Entries
Copy this block below the last entry and fill it in for each new tweak.
=== [Short description of the change] === '''Why:''' [What problem this solves or what behavior it changes, and any gotchas worth remembering.] '''Command:''' <syntaxhighlight lang="bash"> [the command here] </syntaxhighlight> '''Notes:''' * [Backup/rollback info] * [Any prerequisites, e.g. run from X directory] * [Anything else future-you would want to know] ----