From: Michael J. Rubinsky Date: Sun, 20 Sep 2009 22:48:26 +0000 (-0400) Subject: Don't attempt to instantiate an Ansel_Faces driver if we have disabled it. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5e510dea9c6f44f41ba93e55360495d36cd342d7;p=horde.git Don't attempt to instantiate an Ansel_Faces driver if we have disabled it. --- diff --git a/ansel/lib/Widget/OwnerFaces.php b/ansel/lib/Widget/OwnerFaces.php index c33a71123..100997023 100644 --- a/ansel/lib/Widget/OwnerFaces.php +++ b/ansel/lib/Widget/OwnerFaces.php @@ -13,18 +13,6 @@ class Ansel_Widget_OwnerFaces extends Ansel_Widget_Base protected $_owner; /** - * Constructor - * - * @param array $params Any parameters for this widget - * @return Ansel_Widget_ImageFaces - */ - function __construct($params) - { - parent::__construct($params); - $this->_faces = Ansel_Faces::factory(); - } - - /** * Return the HTML representing this widget. * * @return string The HTML for this widget. @@ -35,6 +23,7 @@ class Ansel_Widget_OwnerFaces extends Ansel_Widget_Base return ''; } + $this->_faces = Ansel_Faces::factory(); $this->_owner = $this->_view->gallery->get('owner'); //@TODO: Remove the PEAR_Error check when Faces is refactored. try {