Improved and simplified LocalSettings.php