From be98dfc2c0bdc4f911c6daa94e3fddc29afc89a8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 16 Apr 2012 07:59:08 -0400
Subject: [PATCH] - Replace some references to rcmail with rcube

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

diff --git a/program/include/rcube_output_json.php b/program/include/rcube_output_json.php
index 1d9d6ed..d48dd35 100644
--- a/program/include/rcube_output_json.php
+++ b/program/include/rcube_output_json.php
@@ -170,7 +170,7 @@
      */
     public function redirect($p = array(), $delay = 1)
     {
-        $location = rcmail::get_instance()->url($p);
+        $location = $this->app->url($p);
         $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);",
             rcmail::JS_OBJECT_NAME, $location, $delay));
         exit;

--
Gitblit v1.9.1