From 22d48c269795d040da06c060151c74b1a7063107 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 12 Jun 2013 04:06:16 -0400
Subject: [PATCH] Use global show_real_foldername setting instead archive_localize_name

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

diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php
index 38b4f9f..7a81606 100644
--- a/plugins/archive/archive.php
+++ b/plugins/archive/archive.php
@@ -41,7 +41,7 @@
             'domain' => $this->ID,
         ),
         'toolbar');
-      
+
       // register hook to localize the archive folder
       $this->add_hook('render_mailboxlist', array($this, 'render_mailboxlist'));
 
@@ -75,10 +75,10 @@
   {
     $rcmail = rcmail::get_instance();
     $archive_folder = $rcmail->config->get('archive_mbox');
-    $localize_name = $rcmail->config->get('archive_localize_name', true);
+    $show_real_name = $rcmail->config->get('show_real_foldernames');
 
     // set localized name for the configured archive folder
-    if ($archive_folder && $localize_name) {
+    if ($archive_folder && !$show_real_name) {
       if (isset($p['list'][$archive_folder]))
         $p['list'][$archive_folder]['name'] = $this->gettext('archivefolder');
       else // search in subfolders

--
Gitblit v1.9.1