Quantcast
Viewing all articles
Browse latest Browse all 293722

Add inclusion of a settings.local.php file in settings.php

The Drupal.org infrastructure uses this by default and so do lots of Drupal shops, so why can't we add this snippet to settings.php (and settings.default.php) by default?

/**
 * Include a local settings file if it exists.
 */
$local_settings = dirname(__FILE__) . '/settings.local.php';
if (file_exists($local_settings)) {
  include $local_settings;
}

This could also be a tiny step forwards for local configuration management.


Viewing all articles
Browse latest Browse all 293722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>