yipee...I can see pictures again :)
protected $_widgets = array();
- public function __construct($params)
+ public function __construct($params = array())
{
$this->_params = $params;
}
*/
public function __construct($params = array())
{
- parent::__construct();
+ parent::__construct($params);
/* Get the image */
$image_id = $params['image_id'];
$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;