From 650b694488849b48778ab9a1218a0df4473c72b0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 24 Jul 2004 09:26:44 +0000 Subject: [PATCH] get/set_configSettings with array values --- lam/lib/config.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/config.inc b/lam/lib/config.inc index eebab9eb..d62672e9 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -227,7 +227,7 @@ class Config { if (strtolower(substr($line, 0, $keylen + 2)) == "modules: ") { $option = substr($line, $keylen + 2, strlen($line) - $keylen - 2); $pos = strpos($option, ":"); - $this->moduleSettings[substr($option, 0, $pos)] = substr($option, $pos + 2, strlen($option) - $pos - 2); + $this->moduleSettings[substr($option, 0, $pos)] = explode("+::+", substr($option, $pos + 2, strlen($option) - $pos - 2)); } // general settings else { @@ -269,7 +269,7 @@ class Config { $option = substr($line, $keylen + 2, strlen($line) - $keylen - 2); $pos = strpos($option, ":"); $name = substr($option, 0, $pos); - $file_array[$i] = "modules: " . $name . ": " . $this->moduleSettings[$name] . "\n"; + $file_array[$i] = "modules: " . $name . ": " . implode("+::+", $this->moduleSettings[$name]) . "\n"; $mod_saved[] = $name; // mark keyword as saved } // general settings @@ -365,7 +365,7 @@ class Config { echo "" . _("Module settings") . ":
\n"; echo "\n"; }