From b574f0e00f4eeb41c5399bddbdc0016756a303c7 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 31 Jul 2009 13:19:54 -0400 Subject: [PATCH] Make sure to pass parameters to parent const'r yipee...I can see pictures again :) --- ansel/lib/View/Base.php | 2 +- ansel/lib/View/Image.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index 92d0c5545..0353c1446 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -32,7 +32,7 @@ abstract class Ansel_View_Base protected $_widgets = array(); - public function __construct($params) + public function __construct($params = array()) { $this->_params = $params; } diff --git a/ansel/lib/View/Image.php b/ansel/lib/View/Image.php index 1ae9e4ef4..87cb6eb16 100644 --- a/ansel/lib/View/Image.php +++ b/ansel/lib/View/Image.php @@ -25,7 +25,7 @@ class Ansel_View_Image extends Ansel_View_Base */ public function __construct($params = array()) { - parent::__construct(); + parent::__construct($params); /* Get the image */ $image_id = $params['image_id']; @@ -34,7 +34,7 @@ class Ansel_View_Image extends Ansel_View_Base $image = &$GLOBALS['ansel_storage']->getImage($image_id); /* Get the Ansel_Gallery */ - $this->gallery = $view->getGallery(); + $this->gallery = $this->getGallery(); /* Save the image reference */ $this->resource = $image; -- 2.11.0