From 9cfebf3eb3350c61461bfb6ea2708a4e6df659cc Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 Nov 2015 14:21:26 +0100 Subject: [PATCH] Changed: Remove hardcoded FAQ URLs --HG-- branch : compatibility-develop --- code/ryzom/client/src/browse_faq.cpp | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/code/ryzom/client/src/browse_faq.cpp b/code/ryzom/client/src/browse_faq.cpp index 1f345f0af..cdf830fe8 100644 --- a/code/ryzom/client/src/browse_faq.cpp +++ b/code/ryzom/client/src/browse_faq.cpp @@ -52,21 +52,14 @@ void browseFAQ(NLMISC::CConfigFile &cf) } } } + if (url.empty()) { - // not found ? rely on hardcoded stuff - if (nlstricmp(languageCode, "fr") == 0) - { - url = "http://forums.ryzom.com/forum/showthread.php?t=29130"; - } - else if (nlstricmp(languageCode, "de") == 0) - { - url = "http://forums.ryzom.com/forum/showthread.php?t=29131"; - } - else - { - url = "http://forums.ryzom.com/forum/showthread.php?t=29129"; - } + // not found + nlwarning("No FAQ url"); + } + else + { + openURL(url.c_str()); } - openURL(url.c_str()); }