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,8 +154,7 @@ class KTDocumentActionUtil {
154 $oRegistry =& KTPluginRegistry::getSingleton(); 154 $oRegistry =& KTPluginRegistry::getSingleton();
155 $oPlugin =& $oRegistry->getPlugin($sPlugin); 155 $oPlugin =& $oRegistry->getPlugin($sPlugin);
156 if (!empty($sPath)) { 156 if (!empty($sPath)) {
157 - // require_once(KT_DIR .  
158 - // Or something... 157 + require_once($sPath);
159 } 158 }
160 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin); 159 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
161 } 160 }
@@ -171,8 +170,7 @@ class KTDocumentActionUtil { @@ -171,8 +170,7 @@ class KTDocumentActionUtil {
171 $oRegistry =& KTPluginRegistry::getSingleton(); 170 $oRegistry =& KTPluginRegistry::getSingleton();
172 $oPlugin =& $oRegistry->getPlugin($sPlugin); 171 $oPlugin =& $oRegistry->getPlugin($sPlugin);
173 if (!empty($sPath)) { 172 if (!empty($sPath)) {
174 - // require_once(KT_DIR .  
175 - // Or something... 173 + require_once($sPath);
176 } 174 }
177 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin); 175 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
178 } 176 }
@@ -191,8 +189,7 @@ class KTDocumentActionUtil { @@ -191,8 +189,7 @@ class KTDocumentActionUtil {
191 continue; 189 continue;
192 } 190 }
193 if (!empty($sPath)) { 191 if (!empty($sPath)) {
194 - // require_once(KT_DIR .  
195 - // Or something... 192 + require_once($sPath);
196 } 193 }
197 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin); 194 $aObjects[] =& new $sClassName($oDocument, $oUser, $oPlugin);
198 } 195 }