Added CSS class for avatar images
authorMarcel Werk <burntime@woltlab.com>
Tue, 19 Aug 2014 12:32:14 +0000 (14:32 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 19 Aug 2014 12:32:14 +0000 (14:32 +0200)
wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php

index 1fcd225dfc2e3934dea40b8c7c38519df207e9aa..0413ec696fff6b8e8e660b34c275a0cabc7d57d9 100644 (file)
@@ -34,7 +34,7 @@ class DefaultAvatar implements IUserAvatar {
        public function getImageTag($size = null) {
                if ($size === null) $size = $this->size;
                
-               return '<img src="'.$this->getURL($size).'" style="width: '.$size.'px; height: '.$size.'px" alt="'.WCF::getLanguage()->get('wcf.user.avatar.alt').'" />';
+               return '<img src="'.$this->getURL($size).'" style="width: '.$size.'px; height: '.$size.'px" alt="'.WCF::getLanguage()->get('wcf.user.avatar.alt').'" class="userAvatarImage" />';
        }
        
        /**
index 3be59bc0d9b8d8689fe312deb0e8c740aec8c7e8..c8f06c2e144c635ed0bd36b56b03512dc413a717 100644 (file)
@@ -93,7 +93,7 @@ class UserAvatar extends DatabaseObject implements IUserAvatar {
                        }
                }
                
-               return '<img src="'.StringUtil::encodeHTML($this->getURL($size)).'" style="width: '.$width.'px; height: '.$height.'px" alt="'.WCF::getLanguage()->get('wcf.user.avatar.alt').'" />';
+               return '<img src="'.StringUtil::encodeHTML($this->getURL($size)).'" style="width: '.$width.'px; height: '.$height.'px" alt="'.WCF::getLanguage()->get('wcf.user.avatar.alt').'" class="userAvatarImage" />';
        }
        
        /**