aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 22:45:45 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 22:45:45 +0000
commit9f290ddfd6d9e07def1d3b95eea4f3e24dd64ea7 (patch)
treeaaeb338ade0e1142baae3fba2e0ab1f28c4fe2db /engine
parentd0d2c2ccc7a22e24aad3d0c7b15e07ccebbb7735 (diff)
downloadelgg-9f290ddfd6d9e07def1d3b95eea4f3e24dd64ea7.tar.gz
elgg-9f290ddfd6d9e07def1d3b95eea4f3e24dd64ea7.tar.bz2
Refs #2610: Custom template handler for views now sent through call_user_func
git-svn-id: http://code.elgg.org/elgg/trunk@8233 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/views.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 6118be030..1e0ce3764 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -414,7 +414,7 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie
if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) {
$template_handler = $CONFIG->template_handler;
if (is_callable($template_handler)) {
- return $template_handler($view, $vars);
+ return call_user_func($template_handler, $view, $vars);
}
}