break if before filter returns a response.

This commit is contained in:
Taylor Otwell 2011-08-05 15:28:14 -05:00
parent 6cf69d5406
commit 1a96696046
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@
foreach (array('before', ACTIVE_MODULE.'::before') as $filter) foreach (array('before', ACTIVE_MODULE.'::before') as $filter)
{ {
$response = Routing\Filter::call($filter, array(), true); $response = Routing\Filter::call($filter, array(), true);
if ( ! is_null($response)) break;
} }
// -------------------------------------------------------------- // --------------------------------------------------------------