Changed language to english.
This commit is contained in:
2
post.php
2
post.php
@@ -6,7 +6,7 @@ $slug = $_GET['slug'] ?? '';
|
|||||||
$filepath = "posts/$slug.md";
|
$filepath = "posts/$slug.md";
|
||||||
|
|
||||||
if (!preg_match('/^[a-zA-Z0-9\-]+$/', $slug) || !file_exists($filepath)) {
|
if (!preg_match('/^[a-zA-Z0-9\-]+$/', $slug) || !file_exists($filepath)) {
|
||||||
echo "<p>Beitrag nicht gefunden.</p>";
|
echo "<p>Post not found.</p>";
|
||||||
include 'includes/footer.php';
|
include 'includes/footer.php';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user