- Fix bug in rcube_plugin::local_skin_path()

release-0.6
alecpl 14 years ago
parent 2d1d68bc7e
commit 1ac5431877

@ -35,13 +35,13 @@ class rcube_json_output
*/ */
private $config; private $config;
private $charset = RCMAIL_CHARSET; private $charset = RCMAIL_CHARSET;
private $env = array();
private $texts = array(); private $texts = array();
private $commands = array(); private $commands = array();
private $callbacks = array(); private $callbacks = array();
private $message = null; private $message = null;
public $browser; public $browser;
public $env = array();
public $type = 'js'; public $type = 'js';
public $ajax_call = true; public $ajax_call = true;

@ -247,7 +247,7 @@ abstract class rcube_plugin
*/ */
protected function local_skin_path() protected function local_skin_path()
{ {
$skin_path = 'skins/'.$this->api->output->config['skin']; $skin_path = 'skins/'.$this->api->config->get('skin');
if (!is_dir(realpath(slashify($this->home) . $skin_path))) if (!is_dir(realpath(slashify($this->home) . $skin_path)))
$skin_path = 'skins/default'; $skin_path = 'skins/default';
return $skin_path; return $skin_path;

@ -31,6 +31,7 @@ class rcube_plugin_api
public $dir; public $dir;
public $url = 'plugins/'; public $url = 'plugins/';
public $output; public $output;
public $config;
public $handlers = array(); public $handlers = array();
private $plugins = array(); private $plugins = array();
@ -39,7 +40,6 @@ class rcube_plugin_api
private $actionmap = array(); private $actionmap = array();
private $objectsmap = array(); private $objectsmap = array();
private $template_contents = array(); private $template_contents = array();
private $required_plugins = array('filesystem_attachments'); private $required_plugins = array('filesystem_attachments');
private $active_hook = false; private $active_hook = false;
@ -107,6 +107,7 @@ class rcube_plugin_api
{ {
$rcmail = rcmail::get_instance(); $rcmail = rcmail::get_instance();
$this->output = $rcmail->output; $this->output = $rcmail->output;
$this->config = $rcmail->config;
$plugins_dir = dir($this->dir); $plugins_dir = dir($this->dir);
$plugins_dir = unslashify($plugins_dir->path); $plugins_dir = unslashify($plugins_dir->path);

@ -30,17 +30,17 @@
*/ */
class rcube_template extends rcube_html_page class rcube_template extends rcube_html_page
{ {
var $app; private $app;
var $config; private $config;
var $framed = false; private $pagetitle = '';
var $pagetitle = ''; private $message = null;
var $message = null; private $js_env = array();
var $env = array(); private $js_commands = array();
var $js_env = array(); private $object_handlers = array();
var $js_commands = array();
var $object_handlers = array();
public $browser; public $browser;
public $framed = false;
public $env = array();
public $type = 'html'; public $type = 'html';
public $ajax_call = false; public $ajax_call = false;

Loading…
Cancel
Save