From 0b15a4d76b7b9934f70319fc2132b91865fe58d1 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 19:46:02 +0200 Subject: Remove unnecessary $ItemTemplate variables --- core/include/post/list.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/include/post/list.php') diff --git a/core/include/post/list.php b/core/include/post/list.php index b542a2f..84de108 100644 --- a/core/include/post/list.php +++ b/core/include/post/list.php @@ -37,10 +37,7 @@ foreach($postIDs as $postID) { try { $Post = Post\Factory::build($postID); $User = User\Factory::build($Post->get('user')); - - $ItemTemplate = generatePostItemTemplate($Post, $User); - - $templates[] = $ItemTemplate; + $templates[] = generatePostItemTemplate($Post, $User); } catch(Post\Exception $Exception){} catch(User\Exception $Exception){} -- cgit v1.2.3