summaryrefslogtreecommitdiff
path: root/engine/SkinContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/SkinContext.php')
-rw-r--r--engine/SkinContext.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/SkinContext.php b/engine/SkinContext.php
index cfb5068..c395453 100644
--- a/engine/SkinContext.php
+++ b/engine/SkinContext.php
@@ -53,10 +53,12 @@ class SkinContext extends SkinBase {
return call_user_func_array($fn, $arguments);
}
- public function __get(string $name) {
+ public function &__get(string $name) {
$fn = $this->ns.'\\'.$name;
- if (function_exists($fn))
- return [$this, $name];
+ if (function_exists($fn)) {
+ $f = [$this, $name];
+ return $f;
+ }
if (array_key_exists($name, $this->data))
return $this->data[$name];