Changeset f26f73a in github


Ignore:
Timestamp:
Aug 18, 2012 12:01:00 PM (10 months ago)
Author:
Aleksander Machniak <alec@…>
Children:
51d1a02
Parents:
408d141
Message:

More default->larry fixes

Conflicts:

program/include/rcube_plugin.php

Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • plugins/hide_blockquote/hide_blockquote.php

    r8e528fd rf26f73a  
    2828        ) { 
    2929            // include styles 
    30             $skin = $rcmail->config->get('skin'); 
    31             if (!file_exists($this->home."/skins/$skin/style.css")) { 
    32                 $skin = 'default'; 
    33             } 
    34             $this->include_stylesheet("skins/$skin/style.css"); 
     30            $this->include_stylesheet($this->local_skin_path() . "/style.css"); 
    3531 
    3632            // Script and localization 
  • program/include/rcube_plugin.php

    r71ced07 rf26f73a  
    1818 | Author: Thomas Bruederli <roundcube@gmail.com>                        | 
    1919 +-----------------------------------------------------------------------+ 
    20  
    21  $Id$ 
    22  
    2320*/ 
    2421 
     
    338335  public function local_skin_path() 
    339336  { 
    340       $skin_path = 'skins/'.$this->api->config->get('skin'); 
    341       if (!is_dir(realpath(slashify($this->home) . $skin_path))) 
    342         $skin_path = 'skins/default'; 
     337    $rcmail = rcmail::get_instance(); 
     338    foreach (array($rcmail->config->get('skin'), 'larry') as $skin) { 
     339      $skin_path = 'skins/' . $skin; 
     340      if (is_dir(realpath(slashify($this->home) . $skin_path))) 
     341        break; 
     342    } 
     343 
    343344    return $skin_path; 
    344345  } 
Note: See TracChangeset for help on using the changeset viewer.