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

View File

@@ -142,6 +142,8 @@ if (ACTIVE_MODULE !== 'application' and file_exists($filters = ACTIVE_MODULE_PAT
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;
} }
// -------------------------------------------------------------- // --------------------------------------------------------------