--- a/src/internfile/mh_text.cpp
+++ b/src/internfile/mh_text.cpp
@@ -59,13 +59,13 @@
// Max file size parameter: texts over this size are not indexed
int maxmbs = 20;
- RclConfig::getMainConfig()->getConfParam("textfilemaxmbs", &maxmbs);
+ m_config->getConfParam("textfilemaxmbs", &maxmbs);
if (maxmbs == -1 || st.st_size / MB <= maxmbs) {
// Text file page size: if set, we split text files into
// multiple documents
int ps = 1000;
- RclConfig::getMainConfig()->getConfParam("textfilepagekbs", &ps);
+ m_config->getConfParam("textfilepagekbs", &ps);
if (ps != -1) {
ps *= KB;
m_paging = true;