Convert Kohana::show_404() to throw a Kohana_404_Exception()
This commit is contained in:
parent
ace00a891d
commit
c7ad42100b
@ -74,7 +74,7 @@ class CalendarView_Controller extends Controller {
|
||||
|
||||
// Make sure that the page references a valid offset
|
||||
if (($page < 1) || ($page > $max_pages)) {
|
||||
Kohana::show_404();
|
||||
throw new Kohana_404_Exception();
|
||||
}
|
||||
|
||||
// Set up the page.
|
||||
@ -150,7 +150,7 @@ class CalendarView_Controller extends Controller {
|
||||
|
||||
// Make sure that the page references a valid offset
|
||||
if (($page < 1) || ($page > $max_pages)) {
|
||||
Kohana::show_404();
|
||||
throw new Kohana_404_Exception();
|
||||
}
|
||||
|
||||
// Set up the page.
|
||||
|
Reference in New Issue
Block a user