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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
ee2b968b
Commit
ee2b968b
authored
May 25, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed argument display in errorHandler
parent
d3cb54bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
callStackItem.php
framework/views/errorHandler/callStackItem.php
+1
-1
ErrorHandler.php
framework/web/ErrorHandler.php
+2
-3
No files found.
framework/views/errorHandler/callStackItem.php
View file @
ee2b968b
...
...
@@ -20,7 +20,7 @@
<?php
if
(
$method
!==
null
)
:
?>
<span
class=
"call"
>
<?php
if
(
$file
!==
null
)
echo
'–'
?>
<?=
$class
!==
null
?
$handler
->
addTypeLinks
(
"
$class
::
$method
("
.
$handler
->
argumentsToString
(
$args
)
.
")"
)
:
$handler
->
htmlEncode
(
$method
)
.
'('
.
$handler
->
argumentsToString
(
$args
)
.
')'
?>
<?=
(
$class
!==
null
?
$handler
->
addTypeLinks
(
"
$class
::
$method
"
)
:
$handler
->
htmlEncode
(
$method
)
)
.
'('
.
$handler
->
argumentsToString
(
$args
)
.
')'
?>
</span>
<?php
endif
;
?>
<span
class=
"at"
>
<?php
if
(
$line
!==
null
)
echo
'at line'
;
?>
</span>
...
...
framework/web/ErrorHandler.php
View file @
ee2b968b
...
...
@@ -156,11 +156,10 @@ class ErrorHandler extends \yii\base\ErrorHandler
*/
public
function
addTypeLinks
(
$code
)
{
if
(
preg_match
(
'/(.*?)::([^(]+)
\((.*)\)
/'
,
$code
,
$matches
))
{
if
(
preg_match
(
'/(.*?)::([^(]+)/'
,
$code
,
$matches
))
{
$class
=
$matches
[
1
];
$method
=
$matches
[
2
];
$args
=
$matches
[
3
];
$text
=
$this
->
htmlEncode
(
$class
)
.
'::'
.
$this
->
htmlEncode
(
$method
)
.
'('
.
$args
.
')'
;
$text
=
$this
->
htmlEncode
(
$class
)
.
'::'
.
$this
->
htmlEncode
(
$method
);
}
else
{
$class
=
$code
;
$text
=
$this
->
htmlEncode
(
$class
);
...
...
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