From b4de176fcbc60441431cb30058975f9b5dd919db Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 18 Nov 2005 18:26:47 +0000 Subject: [PATCH] Get the portlets to add to the page from the portlet registry. --- lib/dispatcher.inc.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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(); } -- libgit2 0.21.4