summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-10-20 11:24:53 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-10-20 11:24:53 +0000
commita98d1d7cabc6df02faf757f8d8558e05dbad4256 (patch)
treed4cf8a3dccdba1f7cc6845e67cf4b589d4168494
parent6b4e1ec4753bff11443a0f3b52b21da2d166a5c4 (diff)
downloadbrdo-a98d1d7cabc6df02faf757f8d8558e05dbad4256.tar.gz
brdo-a98d1d7cabc6df02faf757f8d8558e05dbad4256.tar.bz2
- modified the variable code so you can override site settings in the config file
by setting them in a $conf variable. This will let you host several domains off the same Drupal installation with the same databases with minor differences in settings. Note: the values can not be changed by users in a GET or POST string.
-rw-r--r--includes/common.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 644e453c7..e5263015f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -383,9 +383,10 @@ function page_footer() {
}
}
-$conf = conf_init();
+$config = conf_init();
-include_once "includes/$conf.php";
+unset($conf);
+include_once "includes/$config.php";
include_once "includes/database.inc";
include_once "includes/variable.inc";
include_once "includes/comment.inc";
@@ -397,7 +398,7 @@ include_once "includes/theme.inc";
include_once "includes/node.inc";
// initialize configuration variables:
-$conf = variable_init();
+$conf = variable_init($conf);
// initialize installed modules:
module_init();