diff options
-rw-r--r-- | plugins/IEView/src/TemplateHTMLBuilder.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 6a65eab30c..247b927888 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -200,12 +200,12 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr szNameIn = Utils::dupString(" ");
}
sprintf(tempStr, "%snoavatar.png", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ if (access(szNoAvatar, 0) == -1)
+ {
+ sprintf(tempStr, "%snoavatar.jpg", tempBase);
szNoAvatar = Utils::UTF8Encode(tempStr);
- if (access(szNoAvatar, 0) != -1)
- {
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
- szNoAvatar = Utils::UTF8Encode(tempStr);
- }
+ }
szAvatarIn = getAvatar(event->hContact, szRealProto);
if (szAvatarIn == NULL) {
szAvatarIn = Utils::dupString(szNoAvatar);
@@ -376,12 +376,12 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, szNameIn = Utils::dupString(" ");
}
sprintf(tempStr, "%snoavatar.png", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ if (access(szNoAvatar, 0) == -1)
+ {
+ sprintf(tempStr, "%snoavatar.jpg", tempBase);
szNoAvatar = Utils::UTF8Encode(tempStr);
- if (access(szNoAvatar, 0) != -1)
- {
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
- szNoAvatar = Utils::UTF8Encode(tempStr);
- }
+ }
if(event->hContact != NULL) {
szAvatarIn = getAvatar(event->hContact, szRealProto);
|