From 8653b14c43033b8bb9e17efd4d73a4462d526eb5 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 30 Mar 2009 13:45:17 -0400 Subject: [PATCH] Make sure we have an application url for blocks, even if the application isn't listed in the sidebar. --- imp/lib/DIMP.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/imp/lib/DIMP.php b/imp/lib/DIMP.php index 4ef360aed..2199bccac 100644 --- a/imp/lib/DIMP.php +++ b/imp/lib/DIMP.php @@ -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( -- 2.11.0