diff options
Diffstat (limited to 'indra/newview/llversioninfo.cpp')
-rw-r--r-- | indra/newview/llversioninfo.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llversioninfo.cpp b/indra/newview/llversioninfo.cpp index 4720a989b0..ccfb9f3e41 100644 --- a/indra/newview/llversioninfo.cpp +++ b/indra/newview/llversioninfo.cpp @@ -28,6 +28,7 @@ #include "llviewerprecompiledheaders.h" #include "llevents.h" #include "lleventfilter.h" +#include "lltrans.h" #include "llversioninfo.h" #include "stringize.h" #include <boost/regex.hpp> @@ -173,5 +174,14 @@ std::string LLVersionInfo::getBuildConfig() std::string LLVersionInfo::getReleaseNotes() { - return mReleaseNotes; + if (mReleaseNotes.empty()) + { + std::string url = mReleaseNotes; + url = LLTrans::getString("RELEASE_NOTES_BASE_URL"); + if (!LLStringUtil::endsWith(url, "/")) + url += "/"; + url += LLURI::escape(getVersion()) + ".html"; + return url; + } + return mReleaseNotes; // VVM supplied } |