thomascube
2012-04-13 69baeefab31dda8ffcc43e0636bb93157e2eee4f
allow read-only access to rcube_output::$env

1 files modified
12 ■■■■■ changed files
program/include/rcube_output.php 12 ●●●●● patch | view | raw | blame | history
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