summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-15 18:41:15 -0700
committerZach Copley <zach@status.net>2010-03-15 18:41:15 -0700
commitd1ea448c274334cfee49c8d53e61866145084433 (patch)
treec71a8de00265d8b6aa969cbc9a4f99965f54bb0d /actions
parent441e52718e4db4eb45bd5c76c5af446496f56f96 (diff)
Always output a site logo via /api/statusnet/config.:format (so client devs have something to use)
Diffstat (limited to 'actions')
-rw-r--r--actions/apistatusnetconfig.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/actions/apistatusnetconfig.php b/actions/apistatusnetconfig.php
index bff8313b5..66b23c02d 100644
--- a/actions/apistatusnetconfig.php
+++ b/actions/apistatusnetconfig.php
@@ -97,8 +97,6 @@ class ApiStatusnetConfigAction extends ApiAction
// XXX: check that all sections and settings are legal XML elements
- common_debug(var_export($this->keys, true));
-
foreach ($this->keys as $section => $settings) {
$this->elementStart($section);
foreach ($settings as $setting) {
@@ -110,6 +108,14 @@ class ApiStatusnetConfigAction extends ApiAction
} else if ($value === true) {
$value = 'true';
}
+
+ // return theme logo if there's no site specific one
+ if (empty($value)) {
+ if ($section == 'site' && $setting == 'logo') {
+ $value = Theme::path('logo.png');
+ }
+ }
+
$this->element($setting, null, $value);
}
$this->elementEnd($section);