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/page/list.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/include/page') diff --git a/core/include/page/list.php b/core/include/page/list.php index 55f38cc..7618009 100644 --- a/core/include/page/list.php +++ b/core/include/page/list.php @@ -37,10 +37,7 @@ foreach($pageIDs as $pageID) { try { $Page = Page\Factory::build($pageID); $User = User\Factory::build($Page->get('user')); - - $ItemTemplate = generatePageItemTemplate($Page, $User); - - $templates[] = $ItemTemplate; + $templates[] = generatePageItemTemplate($Page, $User); } catch(Page\Exception $Exception){} catch(User\Exception $Exception){} -- cgit v1.2.3