summaryrefslogtreecommitdiff
path: root/src/backend/filters/teitohtml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/filters/teitohtml.cpp')
-rw-r--r--src/backend/filters/teitohtml.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/filters/teitohtml.cpp b/src/backend/filters/teitohtml.cpp
index 4b390d5..6367e22 100644
--- a/src/backend/filters/teitohtml.cpp
+++ b/src/backend/filters/teitohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -10,10 +10,11 @@
#include "backend/filters/teitohtml.h"
#include <QString>
-#include "backend/config/cbtconfig.h"
+#include "backend/config/btconfig.h"
#include "backend/drivers/cswordmoduleinfo.h"
#include "backend/managers/clanguagemgr.h"
#include "backend/managers/referencemanager.h"
+#include "backend/managers/cswordbackend.h"
// Sword includes:
#include <swbuf.h>
@@ -108,7 +109,7 @@ void TeiToHtml::renderReference(const char *osisRef, sword::SWBuf &buf,
//If the osisRef is something like "ModuleID:key comes here" then the
// modulename is given, so we'll use that one
- CSwordModuleInfo* mod = CBTConfig::get( CBTConfig::standardBible );
+ CSwordModuleInfo* mod = btConfig().getDefaultSwordModuleByType( "standardBible" );
// Q_ASSERT(mod); There's no necessarily a module or standard Bible
@@ -128,7 +129,7 @@ void TeiToHtml::renderReference(const char *osisRef, sword::SWBuf &buf,
ReferenceManager::ParseOptions options;
options.refBase = QString::fromUtf8(myUserData->key->getText());
options.refDestinationModule = QString(mod->name());
- options.sourceLanguage = QString(mod->module()->Lang());
+ options.sourceLanguage = QString(mod->module()->getLanguage());
options.destinationLanguage = QString("en");
buf.append("<a href=\"");