Remove TODO and fix code style issue
authorMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jul 2020 15:19:41 +0000 (17:19 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jul 2020 15:19:41 +0000 (17:19 +0200)
wcfsetup/install/files/lib/data/media/MediaAction.class.php

index eeb26333054e18d1f494959fb06b21494913c7cd..2f45ca518d20de9be7a18de8dabf6fea02840891 100644 (file)
@@ -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,