From 1c524efbf7da91cb99bb4516feb514071e938495 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 10 Jul 2022 01:30:05 +0300 Subject: dark theme support --- engine/SkinContext.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engine/SkinContext.php') 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]; -- cgit v1.2.3