From: Matthias Schmidt Date: Sun, 5 Jul 2020 15:19:41 +0000 (+0200) Subject: Remove TODO and fix code style issue X-Git-Tag: 5.3.0_Alpha_1~151^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0926917d50508b6be25f4977cc4c0fef07301bab;p=GitHub%2FWoltLab%2FWCF.git Remove TODO and fix code style issue --- diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index eeb2633305..2f45ca518d 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -188,9 +188,8 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, 'id' => $media->userID, 'title' => $media->username ]) : '', - // TODO: find better solution 'userLinkElement' => $media instanceof ViewableMedia ? WCF::getTPL()->fetchString( - WCF::getTPL()->getCompiler()->compileString('userLink','{user object=$userProfile}')['template'], + WCF::getTPL()->getCompiler()->compileString('userLink', '{user object=$userProfile}')['template'], ['userProfile' => $media->getUserProfile()] ) : '', 'username' => $media->username,