From 5f8adabb6286fdcb0ff8a0ea5d1d58f40eef51f4 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 27 Aug 2012 03:28:16 -0400
Subject: [PATCH] Add simple (constructor) tests for Framework classes
---
program/include/rcube_output_json.php | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/program/include/rcube_output_json.php b/program/include/rcube_output_json.php
index 1d9d6ed..eb1a938 100644
--- a/program/include/rcube_output_json.php
+++ b/program/include/rcube_output_json.php
@@ -17,9 +17,6 @@
| Author: Thomas Bruederli <roundcube@gmail.com> |
| Author: Aleksander Machniak <alec@alec.pl> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
@@ -37,18 +34,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;
- }
/**
@@ -170,7 +155,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