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
8c6cf615
Commit
8c6cf615
authored
May 11, 2013
by
Benjamin Wöster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod: don't use ArrayHelper to avoid loading another class during every request
parent
612eb3fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Application.php
yii/base/Application.php
+6
-2
No files found.
yii/base/Application.php
View file @
8c6cf615
...
...
@@ -85,8 +85,12 @@ class Application extends Module
throw
new
InvalidConfigException
(
'The "basePath" configuration is required.'
);
}
if
(
isset
(
$config
[
'timeZone'
])
||
!
ini_get
(
'date.timezone'
))
{
$this
->
setTimeZone
(
\yii\helpers\ArrayHelper
::
remove
(
$config
,
'timeZone'
,
'UTC'
)
);
if
(
isset
(
$config
[
'timeZone'
]))
{
$this
->
setTimeZone
(
$config
[
'timeZone'
]);
unset
(
$config
[
'timeZone'
]);
}
elseif
(
!
ini_get
(
'date.timezone'
))
{
$this
->
setTimeZone
(
'UTC'
);
unset
(
$config
[
'timeZone'
]);
}
$this
->
registerErrorHandlers
();
...
...
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