allow read-only access to rcube_output::$env

This commit is contained in:
thomascube
2012-04-13 15:56:28 +00:00
parent c31360dbd7
commit 69baeefab3

View File

@@ -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
*