diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 15:56:28 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 15:56:28 +0000 |
| commit | 5a978736ac88f789161f7891ed917178b837db78 (patch) | |
| tree | ea720e0c6e2f03794b9756e4b6caf76d982d9be2 | |
| parent | 00e07d3b1a345bf7732c0dbd13fd3cd6050effa2 (diff) | |
allow read-only access to rcube_output::$env
git-svn-id: https://svn.roundcube.net/trunk@6082 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_output.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_output.php b/roundcubemail/program/include/rcube_output.php index 575f1062d..a83ed1f37 100644 --- a/roundcubemail/program/include/rcube_output.php +++ b/roundcubemail/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 |
