diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-16 02:21:58 +0000 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-16 02:21:58 +0000 |
commit | ba1e36dd492cedbad49f00715cf35a8cdf23ac07 (patch) | |
tree | abbd1e0a89031a6e423ecb94d2ceeaa9fcd9bff2 /lib/action.php | |
parent | d3092274c25e9ee8b0fa729a5f3a35df7dde276c (diff) |
Fix use of $config in Action
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/action.php b/lib/action.php index 90bb67870..159621b7a 100644 --- a/lib/action.php +++ b/lib/action.php @@ -222,15 +222,13 @@ class Action extends HTMLOutputter // lawsuit 'class' => 'vcard')); $this->elementStart('a', array('class' => 'url home bookmark', 'href' => common_local_url('public'))); - if ((isset($config['site']['logo']) && is_string($config['site']['logo']) && (strlen($config['site']['logo']) > 0)) - || file_exists(theme_file('logo.png'))) + if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) { $this->element('img', array('class' => 'logo photo', - 'src' => isset($config['site']['logo']) ? - ($config['site']['logo']) : theme_path('logo.png'), - 'alt' => $config['site']['name'])); + 'src' => (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'), + 'alt' => common_config('site', 'name'))); } - $this->element('span', array('class' => 'fn org'), $config['site']['name']); + $this->element('span', array('class' => 'fn org'), common_config('site', 'name')); $this->elementEnd('a'); $this->elementEnd('address'); } |