From 430f8dcf43f9a46c73aad46caee3f90ce605fb3c Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Thu, 8 May 2008 11:18:32 +0000 Subject: [PATCH] Merged in from DEV trunk... --- lib/util/ktutil.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index c716cf8..0ec56db 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -726,6 +726,13 @@ class KTUtil { // {{{ findCommand function findCommand($sConfigVar, $sDefault = null) { + // Check for the stack command before using the user defined command + $result = KTUtil::checkForStackCommand($sConfigVar); + if (!empty($result)) + { + return $result; + } + $oKTConfig =& KTConfig::getSingleton(); $sCommand = $oKTConfig->get($sConfigVar, $sDefault); if (empty($sCommand)) { @@ -738,12 +745,6 @@ class KTUtil { return $sCommand . ".exe"; } - $result = KTUtil::checkForStackCommand($sConfigVar); - if (!empty($result)) - { - return $result; - } - $sExecSearchPath = $oKTConfig->get("KnowledgeTree/execSearchPath"); $sExecSearchPath .= PATH_SEPARATOR . KT_DIR . "/../common/"; $sExecSearchPath .= PATH_SEPARATOR . KT_DIR . "/../bin/xpdf/"; -- libgit2 0.21.4