From d5b10095d13389b25535621762a72db3010620a6 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Mon, 31 Aug 2009 14:35:34 -0400 Subject: [PATCH] Allow passthrough to all View methods, not just helpers (bryanalves@gmail.com) --- framework/View/lib/Horde/View/Helper/Base.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/View/lib/Horde/View/Helper/Base.php b/framework/View/lib/Horde/View/Helper/Base.php index aeb2aed10..5b0b21a22 100644 --- a/framework/View/lib/Horde/View/Helper/Base.php +++ b/framework/View/lib/Horde/View/Helper/Base.php @@ -54,16 +54,16 @@ abstract class Horde_View_Helper_Base } /** - * Call chaining so other helpers can be called transparently. + * Call chaining so members of the view can be called (including other helpers) * - * @param string $method The helper method. - * @param array $args The parameters for the helper. + * @param string $method The method. + * @param array $args The parameters for the method. * - * @return string The result of the helper method. + * @return mixed The result of the method. */ public function __call($method, $args) { - return $this->_view->__call($method, $args); + return call_user_func_array(array($this->_view, $method), $args); } } -- 2.11.0