summaryrefslogtreecommitdiff
path: root/actions/twitapilaconica.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-30 16:19:57 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-30 16:19:57 -0500
commit76d91a358bc072274953c2aaf8a768c331ac2a71 (patch)
tree927a93b1eb6d7ca61ab8a836e79dbe6d454d0426 /actions/twitapilaconica.php
parent91a41242ef5309fdae0243251d0e0add75c51b99 (diff)
better serialization of arrays and booleans in config output
darcs-hash:20081230211957-84dde-ea044934e16bb8ef89e762159ecea1fa008b65b9.gz
Diffstat (limited to 'actions/twitapilaconica.php')
-rw-r--r--actions/twitapilaconica.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/actions/twitapilaconica.php b/actions/twitapilaconica.php
index 9d9fcef6f..17b7b0872 100644
--- a/actions/twitapilaconica.php
+++ b/actions/twitapilaconica.php
@@ -119,7 +119,15 @@ class TwitapilaconicaAction extends TwitterapiAction
foreach ($keys as $section => $settings) {
common_element_start($section);
foreach ($settings as $setting) {
- common_element($setting, null, common_config($section, $setting));
+ $value = common_config($section, $setting);
+ if (is_array($value)) {
+ $value = implode(',', $value);
+ } else if ($value === false) {
+ $value = 'false';
+ } else if ($value === true) {
+ $value = 'true';
+ }
+ common_element($setting, null, $value);
}
common_element_end($section);
}