Make sure we have an application url for blocks, even if the application
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 30 Mar 2009 17:45:17 +0000 (13:45 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 30 Mar 2009 17:46:01 +0000 (13:46 -0400)
isn't listed in the sidebar.

imp/lib/DIMP.php

index 4ef360a..2199bcc 100644 (file)
@@ -137,6 +137,13 @@ class DIMP
         foreach (DIMP::menuList() as $app) {
             $app_urls[$app] = Horde::url($registry->getInitialPage($app), true);
         }
+        require IMP_BASE . '/config/portal.php';
+        foreach ($dimp_block_list as $block) {
+            $app = $block['ob']->getApp();
+            if (empty($app_urls[$app])) {
+                $app_urls[$app] = Horde::url($registry->getInitialPage($app), true);
+            }
+        }
 
         /* Variables used in core javascript files. */
         $code['conf'] = array(