aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/plugin_controller.php
diff options
context:
space:
mode:
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);
}