From: Michael J. Rubinsky Date: Mon, 30 Mar 2009 17:45:17 +0000 (-0400) Subject: Make sure we have an application url for blocks, even if the application X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8653b14c43033b8bb9e17efd4d73a4462d526eb5;p=horde.git Make sure we have an application url for blocks, even if the application isn't listed in the sidebar. --- 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(