Fix app listing on test page
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 16:57:07 +0000 (10:57 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 16:58:35 +0000 (10:58 -0600)
horde/lib/Test.php
horde/test.php

index bdf3c50..fd0e77a 100644 (file)
@@ -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();
index 25c999f..dde6800 100644 (file)
@@ -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 '<li>' . ucfirst($val) . ' [' . $registry->get('name', $val) . ']: ' . $registry->getVersion($val) .
                     ' (<a href="' . $url->copy()->add('app', $val) . "\">run tests</a>)</li>\n";
             }