Thomas Bruederli
2013-10-21 f06aa8058b7e32ba32d4551074b6e0b8a300f751
program/include/rcube_plugin.php
@@ -17,9 +17,6 @@
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+
 $Id$
*/
/**
@@ -63,6 +60,14 @@
   * @var boolean
   */
  public $noframe = false;
  /**
   * A list of config option names that can be modified
   * by the user via user interface (with save-pref command)
   *
   * @var array
   */
  public $allowed_prefs;
  protected $home;
  protected $urlbase;
@@ -337,9 +342,13 @@
   */
  public function local_skin_path()
  {
      $skin_path = 'skins/'.$this->api->config->get('skin');
      if (!is_dir(realpath(slashify($this->home) . $skin_path)))
        $skin_path = 'skins/default';
    $rcmail = rcmail::get_instance();
    foreach (array($rcmail->config->get('skin'), 'larry') as $skin) {
      $skin_path = 'skins/' . $skin;
      if (is_dir(realpath(slashify($this->home) . $skin_path)))
        break;
    }
    return $skin_path;
  }