From 405b3adfb0790666a52d8d3e1d3683b882fe014b Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 12 Dec 2005 19:51:56 +0000 Subject: [PATCH] If pathInfoSupport is disabled, use the fallback format. --- lib/actions/documentaction.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/actions/documentaction.inc.php b/lib/actions/documentaction.inc.php index 8ee49f7..860d1ec 100644 --- a/lib/actions/documentaction.inc.php +++ b/lib/actions/documentaction.inc.php @@ -70,7 +70,12 @@ class KTDocumentAction extends KTStandardDispatcher { } function getURL() { - return sprintf("%s/action.php/%s?fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID()); + $oKTConfig =& KTConfig::getSingleton(); + if ($oKTConfig->get("KnowledgeTree/pathInfoSupport")) { + return sprintf("%s/action.php/%s?fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID()); + } else { + return sprintf("%s/action.php/?kt_path_info=%s&fDocumentId=%d", $GLOBALS['KTRootUrl'], $this->sName, $this->oDocument->getID()); + } } function getInfo() { -- libgit2 0.21.4