From: Michael J. Rubinsky Date: Fri, 31 Jul 2009 16:01:04 +0000 (-0400) Subject: ...and actually add the const'r to the class X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=907285aa16ad8a51a83d3764aa9de31f2b2d0fb4;p=horde.git ...and actually add the const'r to the class --- 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'); }