Commit 12d034a472000b7a687451def406e1965396eec6
1 parent
0999a07c
Add stopwords default configuration settings
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5805 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
3 additions
and
2 deletions
config/dmsDefaults.php
| ... | ... | @@ -409,6 +409,7 @@ class KTInit { |
| 409 | 409 | $oKTConfig->setdefaultns("config", "useDatabaseConfiguration", false); |
| 410 | 410 | |
| 411 | 411 | $oKTConfig->setdefaultns("urls", "tmpDirectory", '${varDirectory}/tmp'); |
| 412 | + $oKTConfig->setdefaultns("urls", 'stopwordsFile', '${fileSystemRoot}/config/stopwords.txt'); | |
| 412 | 413 | |
| 413 | 414 | $oKTConfig->setdefaultns("tweaks", "browseToUnitFolder", false); |
| 414 | 415 | $oKTConfig->setdefaultns("tweaks", "genericMetaDataRequired", true); | ... | ... |
lib/util/KTStopwords.php
| ... | ... | @@ -57,8 +57,8 @@ class KTStopwords { |
| 57 | 57 | function &getSingleton() { |
| 58 | 58 | if (!KTUtil::arrayGet($GLOBALS, 'KTStopwords')) { |
| 59 | 59 | $GLOBALS['KTStopwords'] =& new KTStopwords; |
| 60 | - $oConfig = KTConfig::getSingleton(); | |
| 61 | - $GLOBALS['KTStopwords']->loadFile($oConfig->get('stopwordsFile')); | |
| 60 | + $oConfig =& KTConfig::getSingleton(); | |
| 61 | + $GLOBALS['KTStopwords']->loadFile($oConfig->get('urls/stopwordsFile')); | |
| 62 | 62 | } |
| 63 | 63 | return $GLOBALS['KTStopwords']; |
| 64 | 64 | } | ... | ... |