Changeset 2716:b4abeeea33f2 for themes
- Timestamp:
- 05/31/14 08:52:29 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_public.php
r2658 r2716 164 164 public static function ductileLogoSrcHelper() 165 165 { 166 $img_url = $GLOBALS['core']->blog->settings->system->themes_url.'/'.$GLOBALS['core']->blog->settings->system->theme.'/img/logo.png'; 167 166 168 $s = $GLOBALS['core']->blog->settings->themes->get($GLOBALS['core']->blog->settings->system->theme.'_style'); 167 169 if ($s === null) { 168 return; 170 // no settings yet, return default logo 171 return $img_url; 169 172 } 170 173 $s = @unserialize($s); 171 174 if (!is_array($s)) { 172 return;173 }174 175 $img_url = $GLOBALS['core']->blog->settings->system->themes_url.'/'.$GLOBALS['core']->blog->settings->system->theme.'/img/logo.png'; 175 // settings error, return default logo 176 return $img_url; 177 } 178 176 179 if (isset($s['logo_src'])) { 177 180 if ($s['logo_src'] !== null) {
Note: See TracChangeset
for help on using the changeset viewer.