diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-04-27 06:45:07 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-04-27 06:45:07 +0000 |
commit | 95f92686e492f48cc230bb5f4a83568bce66e0b8 (patch) | |
tree | 749fcf3a13577ab08f4a24fc14f011074adf8827 | |
parent | 4f6b21519e6d85880be6a21e5a81a6468470cde1 (diff) | |
download | brdo-95f92686e492f48cc230bb5f4a83568bce66e0b8.tar.gz brdo-95f92686e492f48cc230bb5f4a83568bce66e0b8.tar.bz2 |
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.
-rw-r--r-- | includes/common.inc | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |