From 7a1b8f471ca133b6ca99cd4e440e6614a7c18537 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 11 Apr 2017 05:11:57 +0200 Subject: Methods "error403" and "error404" has been added to the "Application" class; several files has been changed. --- admin/page/delete.php | 2 +- admin/page/index.php | 2 +- admin/page/update.php | 2 +- admin/post/delete.php | 2 +- admin/post/index.php | 2 +- admin/post/update.php | 2 +- admin/user/delete.php | 2 +- admin/user/index.php | 2 +- admin/user/update.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'admin') diff --git a/admin/page/delete.php b/admin/page/delete.php index 163bbdb..33d30a5 100644 --- a/admin/page/delete.php +++ b/admin/page/delete.php @@ -66,7 +66,7 @@ try { # CATCH: Page\Exception #=============================================================================== catch(Page\Exception $Exception) { - Application::exit(404); + Application::error404(); } ?> diff --git a/admin/page/index.php b/admin/page/index.php index 56233a9..9a9bdfa 100644 --- a/admin/page/index.php +++ b/admin/page/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/page/update.php b/admin/page/update.php index 857631d..03f05ef 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -91,6 +91,6 @@ try { # CATCH: Page\Exception #=============================================================================== catch(Page\Exception $Exception) { - Application::exit(404); + Application::error404(); } ?> \ No newline at end of file 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 diff --git a/admin/user/delete.php b/admin/user/delete.php index ed8f925..5a1400a 100644 --- a/admin/user/delete.php +++ b/admin/user/delete.php @@ -66,7 +66,7 @@ try { # CATCH: User\Exception #=============================================================================== catch(User\Exception $Exception) { - Application::exit(404); + Application::error404(); } ?> diff --git a/admin/user/index.php b/admin/user/index.php index 3dca93a..5f43eee 100644 --- a/admin/user/index.php +++ b/admin/user/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/user/update.php b/admin/user/update.php index cab582e..07965cd 100644 --- a/admin/user/update.php +++ b/admin/user/update.php @@ -84,6 +84,6 @@ try { # CATCH: User\Exception #=============================================================================== catch(User\Exception $Exception) { - Application::exit(404); + Application::error404(); } ?> \ No newline at end of file -- cgit v1.2.3