summaryrefslogtreecommitdiffstats
path: root/admin/post
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-11 05:11:57 +0200
committerThomas Lange <code@nerdmind.de>2017-04-11 05:15:49 +0200
commit7a1b8f471ca133b6ca99cd4e440e6614a7c18537 (patch)
tree79e9e8fbd20db4db18e531eaa792bf20ed539ae9 /admin/post
parent6feb5fe0d45196af4a9b2b058cefdd15f6007522 (diff)
downloadblog-7a1b8f471ca133b6ca99cd4e440e6614a7c18537.tar.gz
blog-7a1b8f471ca133b6ca99cd4e440e6614a7c18537.tar.xz
blog-7a1b8f471ca133b6ca99cd4e440e6614a7c18537.zip
Methods "error403" and "error404" has been added to the "Application" class; several files has been changed.
Diffstat (limited to 'admin/post')
-rw-r--r--admin/post/delete.php2
-rw-r--r--admin/post/index.php2
-rw-r--r--admin/post/update.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/admin/post/delete.php b/admin/post/delete.php
index 82e71da..f271364 100644
--- a/admin/post/delete.php
+++ b/admin/post/delete.php
@@ -66,7 +66,7 @@ try {
# CATCH: Post\Exception
#===============================================================================
catch(Post\Exception $Exception) {
- Application::exit(404);
+ Application::error404();
}
?>
diff --git a/admin/post/index.php b/admin/post/index.php
index bf7afdf..ad735cd 100644
--- a/admin/post/index.php
+++ b/admin/post/index.php
@@ -19,7 +19,7 @@ $currentSite = HTTP::GET('site') ?? 1;
$currentSite = abs(intval($currentSite));
if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) {
- Application::exit(404);
+ Application::error404();
}
#===============================================================================
diff --git a/admin/post/update.php b/admin/post/update.php
index 65b9045..37dccfe 100644
--- a/admin/post/update.php
+++ b/admin/post/update.php
@@ -91,6 +91,6 @@ try {
# CATCH: Post\Exception
#===============================================================================
catch(Post\Exception $Exception) {
- Application::exit(404);
+ Application::error404();
}
?> \ No newline at end of file