From 95f92686e492f48cc230bb5f4a83568bce66e0b8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Fri, 27 Apr 2001 06:45:07 +0000 Subject: CHANGES - Modified conf_init() to use default.conf if nothing else can be found. - Added some comments to hostname.conf to reflect the changes and provide more information on how to rename the file. TODO - The Drupal handbook should be updated once the CVS version is released. - Should try to remove the remainder of info from hostname.conf and go for a completely web-based administration if possible. - Does having all the settings in a SQL database make Drupal add more overhead than including a .conf file? If nobody knows for sure some tests should be done. If yes, concider having the admin interface generate an include file in addition to saving to the database. --- includes/common.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 2d0d9e324..adbec64fd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6,6 +6,7 @@ function conf_init() { while ($file && !file_exists("includes/$file.conf")) { $file = substr($file, 0, strrpos($file, ".")); } + if (empty($file) && file_exists("includes/default.conf")) $file = "default"; return $file; } -- cgit v1.2.3