Dotclear

Changeset 2716:b4abeeea33f2 for themes


Ignore:
Timestamp:
05/31/14 08:52:29 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use default Ductile logo if themes prefs not yet saved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_public.php

    r2658 r2716  
    164164     public static function ductileLogoSrcHelper() 
    165165     { 
     166          $img_url = $GLOBALS['core']->blog->settings->system->themes_url.'/'.$GLOBALS['core']->blog->settings->system->theme.'/img/logo.png'; 
     167 
    166168          $s = $GLOBALS['core']->blog->settings->themes->get($GLOBALS['core']->blog->settings->system->theme.'_style'); 
    167169          if ($s === null) { 
    168                return; 
     170               // no settings yet, return default logo 
     171               return $img_url; 
    169172          } 
    170173          $s = @unserialize($s); 
    171174          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 
    176179          if (isset($s['logo_src'])) { 
    177180               if ($s['logo_src'] !== null) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map