Commit 6b4e1ec4 authored by natrak's avatar natrak
Browse files

- 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.
parent 1539d4f4
......@@ -2,7 +2,11 @@
function variable_init($conf = array()) {
$result = db_query("SELECT * FROM variable");
while ($variable = db_fetch_object($result)) $conf[$variable->name] = $variable->value;
while ($variable = db_fetch_object($result)) {
if (!isset($conf[$variable->name])) {
$conf[$variable->name] = $variable->value;
return $conf;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment