aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/plugin_controller.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-07-15 10:39:02 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2022-07-15 10:39:02 +0200
commit2b21164387aa3f8ad97eb9d8b1f272089483a6d1 (patch)
tree415ca84ede8d28dae767b70a5528bb06fb3ddeda /app/controllers/plugin_controller.php
parentd1910f1b36f898443e34b33a97cf71679e26b80d (diff)
fix PluginController, re #1328
Diffstat (limited to 'app/controllers/plugin_controller.php')
-rw-r--r--app/controllers/plugin_controller.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/plugin_controller.php b/app/controllers/plugin_controller.php
index c18874e..d57a90d 100644
--- a/app/controllers/plugin_controller.php
+++ b/app/controllers/plugin_controller.php
@@ -64,9 +64,8 @@ class PluginController extends StudipController
*/
public function __call($method, $arguments)
{
- $variables = get_object_vars($this);
- if (isset($variables[$method]) && is_callable($variables[$method])) {
- return call_user_func_array($variables[$method], $arguments);
+ if (isset($this->_template_variables[$method]) && is_callable($this->_template_variables[$method])) {
+ return call_user_func_array($this->_template_variables[$method], $arguments);
}
return parent::__call($method, $arguments);
}