summaryrefslogtreecommitdiff
path: root/program/include/rcube_output.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-04-13 15:56:28 +0000
committerthomascube <thomas@roundcube.net>2012-04-13 15:56:28 +0000
commit69baeefab31dda8ffcc43e0636bb93157e2eee4f (patch)
tree65b4f6dac599c594d8d5212ef9c79f15374f0947 /program/include/rcube_output.php
parentc31360dbd7cc4024ccbfa280603fe7e3bc8f3291 (diff)
allow read-only access to rcube_output::$env
Diffstat (limited to 'program/include/rcube_output.php')
-rw-r--r--program/include/rcube_output.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/program/include/rcube_output.php b/program/include/rcube_output.php
index 575f1062d..a83ed1f37 100644
--- a/program/include/rcube_output.php
+++ b/program/include/rcube_output.php
@@ -54,6 +54,18 @@ abstract class rcube_output
/**
+ * 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