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 @@ -53,6 +53,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 *