don't create wiki dataservice if wiki is not enabled for compile

This commit is contained in:
electron128 2016-01-01 12:01:49 +01:00
parent 72812be7be
commit 9cb81f57ea

View File

@ -1372,12 +1372,11 @@ int RsServer::StartupRetroShare()
/**** Wiki GXS service ****/
#ifdef RS_USE_WIKI
RsGeneralDataService* wiki_ds = new RsDataService(currGxsDir + "/", "wiki_db",
RS_SERVICE_GXS_TYPE_WIKI,
NULL, rsInitConfig->gxs_passwd);
#ifdef RS_USE_WIKI
p3Wiki *mWiki = new p3Wiki(wiki_ds, NULL, mGxsIdService);
// create GXS wiki service
RsGxsNetService* wiki_ns = new RsGxsNetService(