From: Michael M Slusarz Date: Mon, 15 Nov 2010 23:36:31 +0000 (-0700) Subject: Add optional app argument to Horde_Themes::soundList() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2b10ba329ac45e643d61a3d8a3b27bb4ccb9c1a4;p=horde.git Add optional app argument to Horde_Themes::soundList() --- diff --git a/framework/Core/lib/Horde/Themes.php b/framework/Core/lib/Horde/Themes.php index 4d13a6900..28c689ffa 100644 --- a/framework/Core/lib/Horde/Themes.php +++ b/framework/Core/lib/Horde/Themes.php @@ -331,13 +331,16 @@ class Horde_Themes /** * Returns a list of available sounds for a theme. * + * @param string $app The app to search in. + * * @return array An array of Horde_Themes_Sound objects. Keys are the * base filenames. */ - static public function soundList() + static public function soundList($app = null) { - $app = $GLOBALS['registry']->getApp(); - + if (is_null($app)) { + $app = $GLOBALS['registry']->getApp(); + } /* Do search in reverse order - app + theme sounds have the highest * priority and will overwrite previous sound definitions. */ $locations = array(