Commit 7a8bca332523ce1b7c81cd26426d553a7b66bb24

Authored by nbm
1 parent 72abca41

If the action has a path, include it.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4142 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 0 deletions
action.php
@@ -37,6 +37,10 @@ class KTActionDispatcher extends KTStandardDispatcher { @@ -37,6 +37,10 @@ class KTActionDispatcher extends KTStandardDispatcher {
37 $this->error = true; 37 $this->error = true;
38 $this->errorPage("No such action exists in KnowledgeTree"); 38 $this->errorPage("No such action exists in KnowledgeTree");
39 } 39 }
  40 + $sFilename = $aActionInfo[1];
  41 + if (!empty($sFilename)) {
  42 + require_once($sFilename);
  43 + }
40 $oAction = new $aActionInfo[0]; 44 $oAction = new $aActionInfo[0];
41 $oAction->dispatch(); 45 $oAction->dispatch();
42 } 46 }