From 96031a3c04a9da680962d4edb7358ddbdd981157 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 5 Nov 2010 10:57:07 -0600 Subject: [PATCH] Fix app listing on test page --- horde/lib/Test.php | 2 +- horde/test.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/horde/lib/Test.php b/horde/lib/Test.php index bdf3c50ba..fd0e77a30 100644 --- a/horde/lib/Test.php +++ b/horde/lib/Test.php @@ -689,7 +689,7 @@ class Horde_Test { $output = ''; - $horde_apps = $GLOBALS['registry']->listApps(null, true); + $horde_apps = $GLOBALS['registry']->listApps(null, true, null); foreach ($this->_appList as $key => $val) { $entry = array(); diff --git a/horde/test.php b/horde/test.php index 25c999f4d..dde6800ac 100644 --- a/horde/test.php +++ b/horde/test.php @@ -135,10 +135,9 @@ if ($app == 'horde') { /* Get Horde module version information. */ if (!$init_exception) { try { - $app_list = $registry->listApps(null, true); - unset($app_list[$app]); - ksort($app_list); - foreach (array_keys($app_list) as $val) { + $app_list = array_diff($registry->listAllApps(), array($app)); + sort($app_list); + foreach ($app_list as $val) { echo '
  • ' . ucfirst($val) . ' [' . $registry->get('name', $val) . ']: ' . $registry->getVersion($val) . ' (run tests)
  • \n"; } -- 2.11.0