diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-11 05:11:57 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-11 05:15:49 +0200 |
commit | 7a1b8f471ca133b6ca99cd4e440e6614a7c18537 (patch) | |
tree | 79e9e8fbd20db4db18e531eaa792bf20ed539ae9 /system | |
parent | 6feb5fe0d45196af4a9b2b058cefdd15f6007522 (diff) | |
download | blog-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 'system')
-rw-r--r-- | system/page/list.php | 2 | ||||
-rw-r--r-- | system/page/main.php | 2 | ||||
-rw-r--r-- | system/post/list.php | 2 | ||||
-rw-r--r-- | system/post/main.php | 2 | ||||
-rw-r--r-- | system/user/list.php | 2 | ||||
-rw-r--r-- | system/user/main.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/system/page/list.php b/system/page/list.php index 7c3956e..0879065 100644 --- a/system/page/list.php +++ b/system/page/list.php @@ -14,7 +14,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/system/page/main.php b/system/page/main.php index 28de93a..22d0ec7 100644 --- a/system/page/main.php +++ b/system/page/main.php @@ -78,7 +78,7 @@ catch(Page\Exception $Exception) { } catch(Page\Exception $Exception) { - Application::exit(404); + Application::error404(); } } diff --git a/system/post/list.php b/system/post/list.php index 7b0630c..908f7b8 100644 --- a/system/post/list.php +++ b/system/post/list.php @@ -14,7 +14,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/system/post/main.php b/system/post/main.php index 1797d67..0b69023 100644 --- a/system/post/main.php +++ b/system/post/main.php @@ -78,7 +78,7 @@ catch(Post\Exception $Exception) { } catch(Post\Exception $Exception) { - Application::exit(404); + Application::error404(); } } diff --git a/system/user/list.php b/system/user/list.php index b724fe8..2e1e4f1 100644 --- a/system/user/list.php +++ b/system/user/list.php @@ -14,7 +14,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/system/user/main.php b/system/user/main.php index 7dcd6da..8b7bc79 100644 --- a/system/user/main.php +++ b/system/user/main.php @@ -93,6 +93,6 @@ catch(User\Exception $Exception) { } catch(User\Exception $Exception) { - Application::exit(404); + Application::error404(); } }
\ No newline at end of file |