diff --git a/lib/dispatcher.inc.php b/lib/dispatcher.inc.php index 36886e6..45ef719 100644 --- a/lib/dispatcher.inc.php +++ b/lib/dispatcher.inc.php @@ -1,6 +1,7 @@ oPage->addPortlet(new KTSearchPortlet()); + + // Get the portlets to display from the portlet registry + $oPRegistry =& KTPortletRegistry::getSingleton(); + $aPortlets = $oPRegistry->getPortletsForPage($this->aBreadcrumbs); + foreach ($aPortlets as $oPortlet) { + $oPortlet->setDispatcher($this); + $this->oPage->addPortlet($oPortlet); + } + $this->oPage->render(); }