Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
7e19f799
Commit
7e19f799
authored
Jun 24, 2014
by
Serge Postrash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Http status codes are hardcoded in filter
Arbitrary http status codes are hardcoded in filter so it is impossible to search by status code not present in select.
parent
cb87d7be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
index.php
extensions/debug/views/default/index.php
+10
-1
No files found.
extensions/debug/views/default/index.php
View file @
7e19f799
...
...
@@ -34,6 +34,15 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
echo
" <h1>Available Debug Data</h1>"
;
$timeFormatter
=
extension_loaded
(
'intl'
)
?
Yii
::
createObject
([
'class'
=>
'yii\i18n\Formatter'
])
:
Yii
::
$app
->
formatter
;
$codes
=
[];
foreach
(
$manifest
as
$tag
=>
$vals
)
{
if
(
!
empty
(
$vals
[
'statusCode'
]))
{
$codes
[]
=
$vals
[
'statusCode'
];
}
}
$codes
=
array_unique
(
$codes
,
SORT_NUMERIC
);
$status_codes
=
(
!
empty
(
$codes
))
?
array_combine
(
$codes
,
$codes
)
:
true
;
echo
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
...
...
@@ -104,7 +113,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
],
[
'attribute'
=>
'statusCode'
,
'filter'
=>
[
200
=>
200
,
404
=>
404
,
403
=>
403
,
500
=>
500
]
,
'filter'
=>
$status_codes
,
'label'
=>
'Status code'
],
],
...
...
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