From 01accaff5b52d8fa53a1821d452f265aef67cef1 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 28 Oct 2009 18:53:40 -0400
Subject: [PATCH] Add fallback to default skin if the selected one is not available in plugin directory

---
 plugins/archive/archive.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php
index 8c855fe..27887ce 100644
--- a/plugins/archive/archive.php
+++ b/plugins/archive/archive.php
@@ -24,8 +24,8 @@
     if ($rcmail->task == 'mail' && ($rcmail->action == '' || $rcmail->action == 'show')
       && ($archive_folder = $rcmail->config->get('archive_mbox'))) {
 
-      $skin_path = 'skins/'.$rcmail->output->config['skin'];
-
+      $skin_path = $this->local_skin_path();
+      
       $this->include_script('archive.js');
       $this->add_texts('localization', true);
       $this->add_button(

--
Gitblit v1.9.1