From 2b10ba329ac45e643d61a3d8a3b27bb4ccb9c1a4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 15 Nov 2010 16:36:31 -0700 Subject: [PATCH] Add optional app argument to Horde_Themes::soundList() --- framework/Core/lib/Horde/Themes.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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( -- 2.11.0