- get rid of 'plugins_dir' option, plugins directory must be in Roundcube root (like skins)
| | |
| | | // use this folder to store temp files (must be writeable for apache user) |
| | | $rcmail_config['temp_dir'] = 'temp/'; |
| | | |
| | | // use this folder to search for plugin sources |
| | | $rcmail_config['plugins_dir'] = 'plugins/'; |
| | | |
| | | // List of active plugins. Add the name of a directory found in 'plugins_dir' |
| | | // List of active plugins (in plugins/ directory) |
| | | $rcmail_config['plugins'] = array(); |
| | | |
| | | // enable caching of messages and mailbox data in the local database. |
| | |
| | | // fix paths |
| | | $this->prop['log_dir'] = $this->prop['log_dir'] ? unslashify($this->prop['log_dir']) : INSTALL_PATH . 'logs'; |
| | | $this->prop['temp_dir'] = $this->prop['temp_dir'] ? unslashify($this->prop['temp_dir']) : INSTALL_PATH . 'temp'; |
| | | $this->prop['plugins_dir'] = $this->prop['plugins_dir'] ? unslashify($this->prop['plugins_dir']) : INSTALL_PATH . 'plugins'; |
| | | |
| | | // fix default imap folders encoding |
| | | foreach (array('drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox') as $folder) |
| | |
| | | */ |
| | | private function __construct() |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | $this->dir = realpath($rcmail->config->get('plugins_dir')); |
| | | $this->dir = INSTALL_PATH . $this->url; |
| | | } |
| | | |
| | | |
| | |
| | | $plugin = $temp[0]; |
| | | $name = $temp[1]; |
| | | $skin_dir = $plugin . '/skins/' . $this->config['skin']; |
| | | $skin_path = $this->config['plugins_dir'] . '/' . $skin_dir; |
| | | $skin_path = $this->app->plugins->dir . $skin_dir; |
| | | if (!is_dir($skin_path)) { // fallback to default skin |
| | | $skin_dir = $plugin . '/skins/default'; |
| | | $skin_path = $this->config['plugins_dir'] . '/' . $skin_dir; |
| | | $skin_path = $this->app->plugins->dir . $skin_dir; |
| | | } |
| | | } |
| | | |