diff options
author | Oz Linden <oz@lindenlab.com> | 2012-05-22 16:26:00 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-05-22 16:26:00 -0400 |
commit | 1f0addf6e48c54ab33e0f02bab27cdf6e86d55fb (patch) | |
tree | d24925b8260d4641961ad99829d54f775ed13c19 /indra/llui/llnotifications.cpp | |
parent | 7637acf76e6a1170508e8bddd381c426d219b1ee (diff) | |
parent | 8a9dba5443142873e99e2649eb280a0d17cd256e (diff) |
merge changes for DRTVWR-152
Diffstat (limited to 'indra/llui/llnotifications.cpp')
-rw-r--r-- | indra/llui/llnotifications.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp index 8aa548b974..09480968a6 100644 --- a/indra/llui/llnotifications.cpp +++ b/indra/llui/llnotifications.cpp @@ -399,6 +399,7 @@ LLNotificationTemplate::LLNotificationTemplate(const LLNotificationTemplate::Par : mName(p.name), mType(p.type), mMessage(p.value), + mFooter(p.footer.value), mLabel(p.label), mIcon(p.icon), mURL(p.url.value), @@ -870,6 +871,16 @@ std::string LLNotification::getMessage() const return message; } +std::string LLNotification::getFooter() const +{ + if (!mTemplatep) + return std::string(); + + std::string footer = mTemplatep->mFooter; + LLStringUtil::format(footer, mSubstitutions); + return footer; +} + std::string LLNotification::getLabel() const { std::string label = mTemplatep->mLabel; |