]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix use of $config in Action
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 16 Jan 2009 02:21:58 +0000 (02:21 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 16 Jan 2009 02:21:58 +0000 (02:21 +0000)
lib/action.php

index 90bb678703268c1d3ea67fd43f4765f697587418..159621b7a5274055580f2d4014b3cd409b9bec65 100644 (file)
@@ -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');
     }