Compare commits
2 Commits
a7f1729e6e
...
7269ea03db
| Author | SHA1 | Date | |
|---|---|---|---|
| 7269ea03db | |||
| 2a3a15c92d |
@@ -13,11 +13,11 @@ include_once "php/controller/showCategory-controller.php";
|
|||||||
<div class="s-res-item">
|
<div class="s-res-item">
|
||||||
<div class="s-res-content">
|
<div class="s-res-content">
|
||||||
<h2 class="s-res-item-title">
|
<h2 class="s-res-item-title">
|
||||||
<a href="index.php?pfad=showArticle&id=<?php echo $article['id']; ?>" class="s-res-link">
|
<a href="index.php?pfad=showArticle&id=<?php echo $article->getId(); ?>" class="s-res-link">
|
||||||
<?php echo htmlspecialchars($article['title']); ?>
|
<?php echo htmlspecialchars($article->getTitle()); ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<p class="s-res-author">Von: <span class="s-res-author-name"><?php echo htmlspecialchars($article['author']); ?></span></p>
|
<p class="s-res-author">Von: <span class="s-res-author-name"><?php echo htmlspecialchars($article->getAuthor()); ?></span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="s-res-arrow">→</div>
|
<div class="s-res-arrow">→</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali
|
|||||||
try {
|
try {
|
||||||
$articleManager = ArticleManager::getInstance();
|
$articleManager = ArticleManager::getInstance();
|
||||||
$articles = $articleManager->getArticlesByCategory($category);
|
$articles = $articleManager->getArticlesByCategory($category);
|
||||||
echo $articles[0]->getTitle();
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$_SESSION["message"] = "internal_error";
|
$_SESSION["message"] = "internal_error";
|
||||||
include_once "content/404.php";
|
include_once "content/404.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user