From: Michael J. Rubinsky Date: Wed, 11 Nov 2009 21:33:36 +0000 (-0500) Subject: Fix trying to access protected members, add a getter for Ansel_View parameters X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4c7b8dfd75ae641cc427a41351326974e7212d08;p=horde.git Fix trying to access protected members, add a getter for Ansel_View parameters --- diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index 9d50aeba0..9eb8bb8ea 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -227,6 +227,16 @@ abstract class Ansel_View_Base } /** + * Getter for the view parameters. + * + * @return unknown_type + */ + public function getParams() + { + return $this->_params; + } + + /** * @abstract * @return unknown_type */ diff --git a/ansel/templates/view/gallery.inc b/ansel/templates/view/gallery.inc index 4a00969d7..ce6a38b7c 100644 --- a/ansel/templates/view/gallery.inc +++ b/ansel/templates/view/gallery.inc @@ -1,4 +1,4 @@ -view->_params['api'])): ?> +view->api)): ?>