Commit b4c41640745fba73566fce0ab4b4d8cb2729ac97
1 parent
24766432
Include portlet paths like we do all other actions/triggers/&c.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4949 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/actions/portletregistry.inc.php
| ... | ... | @@ -48,9 +48,13 @@ class KTPortletRegistry { |
| 48 | 48 | $aDone[] = $aPortlet; |
| 49 | 49 | |
| 50 | 50 | $sPortletClass = $aPortlet[0]; |
| 51 | + $sPortletFile = $aPortlet[1]; | |
| 51 | 52 | $sPluginName = $aPortlet[3]; |
| 52 | 53 | $oRegistry =& KTPluginRegistry::getSingleton(); |
| 53 | 54 | $oPlugin =& $oRegistry->getPlugin($sPluginName); |
| 55 | + if (file_exists($sPortletFile)) { | |
| 56 | + require_once($sPortletFile); | |
| 57 | + } | |
| 54 | 58 | $oPortlet =& new $sPortletClass; |
| 55 | 59 | $oPortlet->setPlugin($oPlugin); |
| 56 | 60 | array_push($aReturn, $oPortlet); | ... | ... |