From be9aacaa5296dfca63fb3a01c2dc52538d1546aa Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sat, 17 Nov 2012 12:31:31 -0500
Subject: [PATCH] Bring back lost localization for the about page

---
 program/include/rcube_output_json.php |   27 +++++++--------------------
 1 files changed, 7 insertions(+), 20 deletions(-)

diff --git a/program/include/rcube_output_json.php b/program/include/rcube_output_json.php
index 73cf767..fcd52c7 100644
--- a/program/include/rcube_output_json.php
+++ b/program/include/rcube_output_json.php
@@ -17,16 +17,14 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  | Author: Aleksander Machniak <alec@alec.pl>                            |
  +-----------------------------------------------------------------------+
-
- $Id$
-
 */
 
 
 /**
  * View class to produce JSON responses
  *
- * @package View
+ * @package    Framework
+ * @subpackage View
  */
 class rcube_output_json extends rcube_output
 {
@@ -37,18 +35,6 @@
 
     public $type = 'js';
     public $ajax_call = true;
-
-
-    /**
-     * Set environment variable
-     *
-     * @param string $name Property name
-     * @param mixed $value Property value
-     */
-    public function set_env($name, $value)
-    {
-        $this->env[$name] = $value;
-    }
 
 
     /**
@@ -137,7 +123,7 @@
         if ($override || !$this->message) {
             if ($this->app->text_exists($message)) {
                 if (!empty($vars)) {
-                    $vars = array_map(array('rcube_ui', 'Q'), $vars);
+                    $vars = array_map(array('rcmail', 'Q'), $vars);
                 }
                 $msgtext = $this->app->gettext(array('name' => $message, 'vars' => $vars));
             }
@@ -170,8 +156,9 @@
      */
     public function redirect($p = array(), $delay = 1)
     {
-        $location = rcmail::get_instance()->url($p);
-        $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay));
+        $location = $this->app->url($p);
+        $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);",
+            rcmail::JS_OBJECT_NAME, $location, $delay));
         exit;
     }
 
@@ -224,7 +211,7 @@
         $rcmail = rcmail::get_instance();
         $response['action'] = $rcmail->action;
 
-        if ($unlock = rcube_ui::get_input_value('_unlock', rcube_ui::INPUT_GPC)) {
+        if ($unlock = rcube_utils::get_input_value('_unlock', rcube_utils::INPUT_GPC)) {
             $response['unlock'] = $unlock;
         }
 

--
Gitblit v1.9.1