Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
ae9824f8
Commit
ae9824f8
authored
Jul 07, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove comment bloat from Route\Filter class.
parent
a5af988d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
system/route/filter.php
+3
-10
No files found.
system/route/filter.php
View file @
ae9824f8
...
@@ -24,9 +24,6 @@ class Filter {
...
@@ -24,9 +24,6 @@ class Filter {
static
::
$filters
=
require
APP_PATH
.
'filters'
.
EXT
;
static
::
$filters
=
require
APP_PATH
.
'filters'
.
EXT
;
}
}
// --------------------------------------------------------------
// Filters can be comma-delimited, so spin through each one.
// --------------------------------------------------------------
foreach
(
explode
(
', '
,
$filters
)
as
$filter
)
foreach
(
explode
(
', '
,
$filters
)
as
$filter
)
{
{
if
(
!
isset
(
static
::
$filters
[
$filter
]))
if
(
!
isset
(
static
::
$filters
[
$filter
]))
...
@@ -36,13 +33,9 @@ class Filter {
...
@@ -36,13 +33,9 @@ class Filter {
$response
=
call_user_func_array
(
static
::
$filters
[
$filter
],
$parameters
);
$response
=
call_user_func_array
(
static
::
$filters
[
$filter
],
$parameters
);
// --------------------------------------------------------------
// If overriding is set to true and the filter returned a response, return that response.
// If overriding is set to true and the filter returned a
// Overriding allows for convenient halting of the request flow for things like
// response, return that response.
// authentication, CSRF protection, etc.
//
// Overriding allows for convenient halting of the request
// flow for things like authentication, CSRF protection, etc.
// --------------------------------------------------------------
if
(
!
is_null
(
$response
)
and
$override
)
if
(
!
is_null
(
$response
)
and
$override
)
{
{
return
$response
;
return
$response
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment