diff options
author | Oz Linden <oz@lindenlab.com> | 2012-05-25 14:22:33 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-05-25 14:22:33 -0400 |
commit | ee66cb3efccd6976c5a7725620956ea7030b7b57 (patch) | |
tree | 7ae469e4d2aac985589e7df902959b27c603b2ad /indra/llui/llnotifications.cpp | |
parent | 5ef8372e433896be174d7123bd4663087601a0df (diff) | |
parent | 3e8dab32ee88e0a6fda51c218c61d718cf9dcafa (diff) |
merge back beta tags
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; |