From 4c7b8dfd75ae641cc427a41351326974e7212d08 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 11 Nov 2009 16:33:36 -0500 Subject: [PATCH] Fix trying to access protected members, add a getter for Ansel_View parameters --- ansel/lib/View/Base.php | 10 ++++++++++ ansel/templates/view/gallery.inc | 10 +++++----- ansel/templates/view/gallerylightbox.inc | 10 +++++----- 3 files changed, 20 insertions(+), 10 deletions(-) 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)): ?>