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
0a41b006
Commit
0a41b006
authored
Apr 19, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary code, added comment about displaying errors
parent
767a78f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ErrorHandler.php
framework/base/ErrorHandler.php
+2
-4
No files found.
framework/base/ErrorHandler.php
View file @
0a41b006
...
...
@@ -81,6 +81,8 @@ class ErrorHandler extends Component
if
(
isset
(
$_SERVER
[
'HTTP_X_REQUESTED_WITH'
])
&&
$_SERVER
[
'HTTP_X_REQUESTED_WITH'
]
===
'XMLHttpRequest'
)
{
\Yii
::
$app
->
renderException
(
$exception
);
}
else
{
// if there is an error during error rendering it's useful to
// display PHP error in debug mode instead of a blank screen
if
(
YII_DEBUG
)
{
ini_set
(
'display_errors'
,
1
);
}
...
...
@@ -94,10 +96,6 @@ class ErrorHandler extends Component
echo
$view
->
renderFile
(
$viewName
,
array
(
'exception'
=>
$exception
,
),
$this
);
if
(
YII_DEBUG
)
{
ini_set
(
'display_errors'
,
0
);
}
}
}
else
{
\Yii
::
$app
->
renderException
(
$exception
);
...
...
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