From: Jan Schneider Date: Wed, 22 Dec 2010 17:49:50 +0000 (+0100) Subject: This check is broken. It's probably meant to check $this->_name, but this is X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e7ac7991ce1092c4148811147e0c794a0ed171d7;p=horde.git This check is broken. It's probably meant to check $this->_name, but this is the wrong place for the check anyway, because it's already too late if we have Sound object. And we already to the wav check in soundList(). --- diff --git a/framework/Core/lib/Horde/Themes/Sound.php b/framework/Core/lib/Horde/Themes/Sound.php index a51ac028b..bcf25391d 100644 --- a/framework/Core/lib/Horde/Themes/Sound.php +++ b/framework/Core/lib/Horde/Themes/Sound.php @@ -18,14 +18,4 @@ class Horde_Themes_Sound extends Horde_Themes_Element */ protected $_dirname = 'sounds'; - /** - */ - public function __get($name) - { - /* Sounds must be in .wav format. */ - return (substr(strrchr($name, '.'), 1) == 'wav') - ? parent::__get($name) - : null; - } - }