From: Chuck Hagenbuch Date: Mon, 31 Aug 2009 18:35:34 +0000 (-0400) Subject: Allow passthrough to all View methods, not just helpers (bryanalves@gmail.com) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d5b10095d13389b25535621762a72db3010620a6;p=horde.git Allow passthrough to all View methods, not just helpers (bryanalves@gmail.com) --- 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); } }