From 12d034a472000b7a687451def406e1965396eec6 Mon Sep 17 00:00:00 2001 From: nbm Date: Tue, 15 Aug 2006 10:56:02 +0000 Subject: [PATCH] Add stopwords default configuration settings --- config/dmsDefaults.php | 1 + lib/util/KTStopwords.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 0d214dd..27693d3 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -409,6 +409,7 @@ class KTInit { $oKTConfig->setdefaultns("config", "useDatabaseConfiguration", false); $oKTConfig->setdefaultns("urls", "tmpDirectory", '${varDirectory}/tmp'); + $oKTConfig->setdefaultns("urls", 'stopwordsFile', '${fileSystemRoot}/config/stopwords.txt'); $oKTConfig->setdefaultns("tweaks", "browseToUnitFolder", false); $oKTConfig->setdefaultns("tweaks", "genericMetaDataRequired", true); diff --git a/lib/util/KTStopwords.php b/lib/util/KTStopwords.php index 816c70f..4908e98 100644 --- a/lib/util/KTStopwords.php +++ b/lib/util/KTStopwords.php @@ -57,8 +57,8 @@ class KTStopwords { function &getSingleton() { if (!KTUtil::arrayGet($GLOBALS, 'KTStopwords')) { $GLOBALS['KTStopwords'] =& new KTStopwords; - $oConfig = KTConfig::getSingleton(); - $GLOBALS['KTStopwords']->loadFile($oConfig->get('stopwordsFile')); + $oConfig =& KTConfig::getSingleton(); + $GLOBALS['KTStopwords']->loadFile($oConfig->get('urls/stopwordsFile')); } return $GLOBALS['KTStopwords']; } -- libgit2 0.21.4