From e2e2e8f37901eac134b133776f247658f2d33963 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sun, 25 Nov 2012 11:44:51 -0500
Subject: [PATCH] Use new RCUBE_PLUGINS_DIR constant

---
 plugins/password/drivers/dbmail.php                     |    2 +-
 plugins/password/drivers/virtualmin.php                 |    2 +-
 plugins/password/drivers/sasl.php                       |    2 +-
 plugins/redundant_attachments/redundant_attachments.php |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/password/drivers/dbmail.php b/plugins/password/drivers/dbmail.php
index a7c2f46..e4c0d52 100644
--- a/plugins/password/drivers/dbmail.php
+++ b/plugins/password/drivers/dbmail.php
@@ -19,7 +19,7 @@
 {
     function password_save($currpass, $newpass)
     {
-        $curdir   = INSTALL_PATH . 'plugins/password/helpers';
+        $curdir   = RCUBE_PLUGINS_DIR . 'password/helpers';
         $username = escapeshellcmd($_SESSION['username']);
         $args     = rcmail::get_instance()->config->get('password_dbmail_args', '');
 
diff --git a/plugins/password/drivers/sasl.php b/plugins/password/drivers/sasl.php
index 957c119..9380cf8 100644
--- a/plugins/password/drivers/sasl.php
+++ b/plugins/password/drivers/sasl.php
@@ -20,7 +20,7 @@
 {
     function save($currpass, $newpass)
     {
-        $curdir   = INSTALL_PATH . 'plugins/password/helpers';
+        $curdir   = RCUBE_PLUGINS_DIR . 'password/helpers';
         $username = escapeshellcmd($_SESSION['username']);
         $args     = rcmail::get_instance()->config->get('password_saslpasswd_args', '');
 
diff --git a/plugins/password/drivers/virtualmin.php b/plugins/password/drivers/virtualmin.php
index f9eca96..69f1475 100644
--- a/plugins/password/drivers/virtualmin.php
+++ b/plugins/password/drivers/virtualmin.php
@@ -59,7 +59,7 @@
         $username = escapeshellcmd($username);
         $domain   = escapeshellcmd($domain);
         $newpass  = escapeshellcmd($newpass);
-        $curdir   = INSTALL_PATH . 'plugins/password/helpers';
+        $curdir   = RCUBE_PLUGINS_DIR . 'password/helpers';
 
         exec("$curdir/chgvirtualminpasswd modify-user --domain $domain --user $username --pass $newpass", $output, $returnvalue);
 
diff --git a/plugins/redundant_attachments/redundant_attachments.php b/plugins/redundant_attachments/redundant_attachments.php
index 3c71dcb..4ebc8da 100644
--- a/plugins/redundant_attachments/redundant_attachments.php
+++ b/plugins/redundant_attachments/redundant_attachments.php
@@ -31,7 +31,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-require_once(INSTALL_PATH . 'plugins/filesystem_attachments/filesystem_attachments.php');
+require_once(RCUBE_PLUGINS_DIR . 'filesystem_attachments/filesystem_attachments.php');
 
 class redundant_attachments extends filesystem_attachments
 {

--
Gitblit v1.9.1