aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-13 13:14:41 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-13 13:14:41 +0000
commitf2944af29d07d20a5010e086c05cd26be041d301 (patch)
tree9af351fb57191f63350c3cf3494d0a9f6ddda68f /engine/lib/elgglib.php
parent0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd (diff)
downloadelgg-f2944af29d07d20a5010e086c05cd26be041d301.tar.gz
elgg-f2944af29d07d20a5010e086c05cd26be041d301.tar.bz2
Fix for template handler override.
git-svn-id: https://code.elgg.org/elgg/trunk@2565 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3bdb6d650..22e6a22d5 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -309,8 +309,9 @@
// If it's been requested, pass off to a template handler instead
if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) {
- $template_handler = $CONFIG->template_handler;
- return $template_handler($view, $vars);
+ $template_handler = $CONFIG->template_handler;
+ if (is_callable($template_handler))
+ return $template_handler($view, $vars);
}
// Attempt to memcache views.