Commit 40abf20e68129ad758b12e887d7d897abbde2391

Authored by nbm
1 parent 7769fb7d

Act on the path we get from the actions registry.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4558 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/documentaction.inc.php
... ... @@ -154,8 +154,7 @@ class KTDocumentActionUtil {
154 154 $oRegistry =& KTPluginRegistry::getSingleton();
155 155 $oPlugin =& $oRegistry->getPlugin($sPlugin);
156 156 if (!empty($sPath)) {
157   - // require_once(KT_DIR .
158   - // Or something...
  157 + require_once($sPath);
159 158 }
160 159 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
161 160 }
... ... @@ -171,8 +170,7 @@ class KTDocumentActionUtil {
171 170 $oRegistry =& KTPluginRegistry::getSingleton();
172 171 $oPlugin =& $oRegistry->getPlugin($sPlugin);
173 172 if (!empty($sPath)) {
174   - // require_once(KT_DIR .
175   - // Or something...
  173 + require_once($sPath);
176 174 }
177 175 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
178 176 }
... ... @@ -191,8 +189,7 @@ class KTDocumentActionUtil {
191 189 continue;
192 190 }
193 191 if (!empty($sPath)) {
194   - // require_once(KT_DIR .
195   - // Or something...
  192 + require_once($sPath);
196 193 }
197 194 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
198 195 }
... ...