Commit 405b3adfb0790666a52d8d3e1d3683b882fe014b

Authored by nbm
1 parent e2e453e2

If pathInfoSupport is disabled, use the fallback format.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4419 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/documentaction.inc.php
@@ -70,7 +70,12 @@ class KTDocumentAction extends KTStandardDispatcher { @@ -70,7 +70,12 @@ class KTDocumentAction extends KTStandardDispatcher {
70 } 70 }
71 71
72 function getURL() { 72 function getURL() {
73 - return sprintf("%s/action.php/%s?fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID()); 73 + $oKTConfig =& KTConfig::getSingleton();
  74 + if ($oKTConfig->get("KnowledgeTree/pathInfoSupport")) {
  75 + return sprintf("%s/action.php/%s?fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID());
  76 + } else {
  77 + return sprintf("%s/action.php/?kt_path_info=%s&fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID());
  78 + }
74 } 79 }
75 80
76 function getInfo() { 81 function getInfo() {