This check is broken. It's probably meant to check $this->_name, but this is
authorJan Schneider <jan@horde.org>
Wed, 22 Dec 2010 17:49:50 +0000 (18:49 +0100)
committerJan Schneider <jan@horde.org>
Wed, 22 Dec 2010 17:49:50 +0000 (18:49 +0100)
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().

framework/Core/lib/Horde/Themes/Sound.php

index a51ac02..bcf2539 100644 (file)
@@ -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;
-    }
-
 }