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
2239dd73
Commit
2239dd73
authored
Jun 06, 2013
by
Revin Roman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new method name "getIsAjax" and fix web application class name in logger
parent
bade6f7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ProfileTarget.php
framework/yii/logging/ProfileTarget.php
+1
-1
Response.php
framework/yii/web/Response.php
+1
-1
User.php
framework/yii/web/User.php
+1
-1
No files found.
framework/yii/logging/ProfileTarget.php
View file @
2239dd73
...
@@ -70,7 +70,7 @@ class CProfileLogRoute extends CWebLogRoute
...
@@ -70,7 +70,7 @@ class CProfileLogRoute extends CWebLogRoute
public
function
processLogs
(
$logs
)
public
function
processLogs
(
$logs
)
{
{
$app
=
\Yii
::
$app
;
$app
=
\Yii
::
$app
;
if
(
!
(
$app
instanceof
CWebApplication
)
||
$app
->
getRequest
()
->
getIsAjaxRequest
())
if
(
!
(
$app
instanceof
\yii\web\Application
)
||
$app
->
getRequest
()
->
getIsAjax
())
return
;
return
;
if
(
$this
->
getReport
()
===
'summary'
)
if
(
$this
->
getReport
()
===
'summary'
)
...
...
framework/yii/web/Response.php
View file @
2239dd73
...
@@ -258,7 +258,7 @@ class Response extends \yii\base\Response
...
@@ -258,7 +258,7 @@ class Response extends \yii\base\Response
if
(
strpos
(
$url
,
'/'
)
===
0
&&
strpos
(
$url
,
'//'
)
!==
0
)
{
if
(
strpos
(
$url
,
'/'
)
===
0
&&
strpos
(
$url
,
'//'
)
!==
0
)
{
$url
=
Yii
::
$app
->
getRequest
()
->
getHostInfo
()
.
$url
;
$url
=
Yii
::
$app
->
getRequest
()
->
getHostInfo
()
.
$url
;
}
}
if
(
Yii
::
$app
->
getRequest
()
->
getIsAjax
Request
())
{
if
(
Yii
::
$app
->
getRequest
()
->
getIsAjax
())
{
$statusCode
=
$this
->
ajaxRedirectCode
;
$statusCode
=
$this
->
ajaxRedirectCode
;
}
}
header
(
'Location: '
.
$url
,
true
,
$statusCode
);
header
(
'Location: '
.
$url
,
true
,
$statusCode
);
...
...
framework/yii/web/User.php
View file @
2239dd73
...
@@ -280,7 +280,7 @@ class User extends Component
...
@@ -280,7 +280,7 @@ class User extends Component
public
function
loginRequired
()
public
function
loginRequired
()
{
{
$request
=
Yii
::
$app
->
getRequest
();
$request
=
Yii
::
$app
->
getRequest
();
if
(
!
$request
->
getIsAjax
Request
())
{
if
(
!
$request
->
getIsAjax
())
{
$this
->
setReturnUrl
(
$request
->
getUrl
());
$this
->
setReturnUrl
(
$request
->
getUrl
());
}
}
if
(
$this
->
loginUrl
!==
null
)
{
if
(
$this
->
loginUrl
!==
null
)
{
...
...
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