aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 19:46:02 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 19:46:02 +0200
commit0b15a4d76b7b9934f70319fc2132b91865fe58d1 (patch)
tree2fa0f0137fe0ac4875ab816954fde5c54e2f631b /admin
parent86926ff735cdb7e635a19b01cccd0a94eb2b6d30 (diff)
downloadblog-0b15a4d76b7b9934f70319fc2132b91865fe58d1.tar.gz
blog-0b15a4d76b7b9934f70319fc2132b91865fe58d1.tar.xz
blog-0b15a4d76b7b9934f70319fc2132b91865fe58d1.zip
Remove unnecessary $ItemTemplate variables
Diffstat (limited to 'admin')
-rw-r--r--admin/page/index.php5
-rw-r--r--admin/post/index.php5
-rw-r--r--admin/user/index.php4
3 files changed, 3 insertions, 11 deletions
diff --git a/admin/page/index.php b/admin/page/index.php
index 79be1b2..7527afa 100644
--- a/admin/page/index.php
+++ b/admin/page/index.php
@@ -35,10 +35,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){}
diff --git a/admin/post/index.php b/admin/post/index.php
index 79fbf92..8eedfbd 100644
--- a/admin/post/index.php
+++ b/admin/post/index.php
@@ -35,10 +35,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){}
diff --git a/admin/user/index.php b/admin/user/index.php
index 57e1c3c..f7e639b 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -34,9 +34,7 @@ $userIDs = $Database->query(sprintf($execSQL, User\Attribute::TABLE))->fetchAll(
foreach($userIDs as $userID) {
try {
$User = User\Factory::build($userID);
- $ItemTemplate = generateUserItemTemplate($User);
-
- $templates[] = $ItemTemplate;
+ $templates[] = generateUserItemTemplate($User);
} catch(User\Exception $Exception){}
}