From 69baeefab31dda8ffcc43e0636bb93157e2eee4f Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 13 Apr 2012 11:56:28 -0400
Subject: [PATCH] allow read-only access to rcube_output::$env
---
program/include/rcube_output.php | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/program/include/rcube_output.php b/program/include/rcube_output.php
index 575f106..a83ed1f 100644
--- a/program/include/rcube_output.php
+++ b/program/include/rcube_output.php
@@ -54,6 +54,18 @@
/**
+ * Magic getter
+ */
+ public function __get($var)
+ {
+ // allow read-only access to $env
+ if ($var == 'env')
+ return $this->env;
+
+ return null;
+ }
+
+ /**
* Setter for page title
*
* @param string $title Page title
--
Gitblit v1.9.1