diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-13 13:14:41 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-13 13:14:41 +0000 |
commit | f2944af29d07d20a5010e086c05cd26be041d301 (patch) | |
tree | 9af351fb57191f63350c3cf3494d0a9f6ddda68f /engine/lib/elgglib.php | |
parent | 0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd (diff) | |
download | elgg-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.php | 5 |
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. |