From: Michael J. Rubinsky Date: Fri, 31 Jul 2009 17:19:54 +0000 (-0400) Subject: Make sure to pass parameters to parent const'r X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b574f0e00f4eeb41c5399bddbdc0016756a303c7;p=horde.git Make sure to pass parameters to parent const'r yipee...I can see pictures again :) --- 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;