From 907285aa16ad8a51a83d3764aa9de31f2b2d0fb4 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 31 Jul 2009 12:01:04 -0400 Subject: [PATCH] ...and actually add the const'r to the class --- ansel/lib/View/Gallery.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ansel/lib/View/Gallery.php b/ansel/lib/View/Gallery.php index fd8854d92..0b0ef844b 100644 --- a/ansel/lib/View/Gallery.php +++ b/ansel/lib/View/Gallery.php @@ -70,7 +70,7 @@ class Ansel_View_Gallery extends Ansel_View_Base * when clicking on breadcrumb links, for example. * */ - public function makeView($params = array()) + public function __construct($params = array()) { parent::__construct($params); @@ -166,9 +166,6 @@ class Ansel_View_Gallery extends Ansel_View_Base */ public function getTitle() { - if (is_a($this->gallery, 'PEAR_Error')) { - return $this->gallery->getMessage(); - } return $this->gallery->get('name'); } -- 2.11.0