Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ded98ed757 | |||
| 18fe69cbcd |
@@ -9,12 +9,12 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali
|
|||||||
$articles = $articleManager->getArticlesByCategory($category);
|
$articles = $articleManager->getArticlesByCategory($category);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$_SESSION["message"] = "internal_error";
|
$_SESSION["message"] = "internal_error";
|
||||||
header("location: ../../index.php");
|
include_once "content/404.php";
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$_SESSION["message"] = "invalid_category";
|
$_SESSION["message"] = "invalid_category";
|
||||||
header("location: ../../index.php");
|
include_once "content/404.php";
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -200,7 +200,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
|||||||
|
|
||||||
return $filteredArticles;
|
return $filteredArticles;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getArticlesByCategory($category)
|
public function getArticlesByCategory($category)
|
||||||
{
|
{
|
||||||
$articles = $this->getAllArticles();
|
$articles = $this->getAllArticles();
|
||||||
|
|||||||
Reference in New Issue
Block a user