diff options
-rw-r--r-- | admin/page/index.php | 5 | ||||
-rw-r--r-- | admin/post/index.php | 5 | ||||
-rw-r--r-- | admin/user/index.php | 4 | ||||
-rw-r--r-- | core/include/home.php | 5 | ||||
-rw-r--r-- | core/include/page/list.php | 5 | ||||
-rw-r--r-- | core/include/post/list.php | 5 | ||||
-rw-r--r-- | core/include/search/main.php | 1 | ||||
-rw-r--r-- | core/include/user/list.php | 4 |
8 files changed, 7 insertions, 27 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){} } diff --git a/core/include/home.php b/core/include/home.php index 0edd1f1..76c9287 100644 --- a/core/include/home.php +++ b/core/include/home.php @@ -14,10 +14,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/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){} 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){} diff --git a/core/include/search/main.php b/core/include/search/main.php index c15be17..6bc6bdc 100644 --- a/core/include/search/main.php +++ b/core/include/search/main.php @@ -41,7 +41,6 @@ if(isset($postIDs) AND !empty($postIDs)) { try { $Post = Post\Factory::build($postID); $User = User\Factory::build($Post->get('user')); - $templates[] = generatePostItemTemplate($Post, $User); } catch(Post\Exception $Exception){} diff --git a/core/include/user/list.php b/core/include/user/list.php index c977077..b64eee5 100644 --- a/core/include/user/list.php +++ b/core/include/user/list.php @@ -36,9 +36,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){} } |