aboutsummaryrefslogtreecommitdiff
path: root/engine/SkinContext.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-10 01:30:05 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-10 23:53:02 +0300
commit1c524efbf7da91cb99bb4516feb514071e938495 (patch)
treee1fced0104749014db154f5d3b29881e705bfafc /engine/SkinContext.php
parent8979719a1af4bc0712407db7f95704f645f261a3 (diff)
dark theme support
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];