mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-13 03:26:48 +01:00
allow read-only access to rcube_output::$env
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user