Skip to content
Snippets Groups Projects
Commit 2b211643 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix PluginController, re #1328

parent d1910f1b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment