LocalSettings.php Tweaks: Difference between revisions

From MemoryLeak
Jump to navigation Jump to search
No edit summary
Tag: Reverted
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 lang="bash">
echo "hello world"
</syntaxhighlight>
</syntaxhighlight>



Revision as of 19:53, 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
echo "hello world"

Notes:

  • Creates a backup at LocalSettings.php.bak before 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]

----

Last updated: Kmilleca (talk) 12:43, 3 August 2026 (UTC)