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
0859d0f4
Commit
0859d0f4
authored
Oct 05, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5308: object function calls in templates were passing arguments in a wrong way
parent
7592dcc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CHANGELOG.md
extensions/twig/CHANGELOG.md
+1
-1
Template.php
extensions/twig/Template.php
+1
-1
No files found.
extensions/twig/CHANGELOG.md
View file @
0859d0f4
...
@@ -4,7 +4,7 @@ Yii Framework 2 twig extension Change Log
...
@@ -4,7 +4,7 @@ Yii Framework 2 twig extension Change Log
2.
0.0 under development
2.
0.0 under development
-----------------------
-----------------------
-
no changes in this release.
-
Bug #5308: object function calls in templates were passing arguments in a wrong way (genichyar, samdark)
2.0.0-rc September 27, 2014
2.0.0-rc September 27, 2014
...
...
extensions/twig/Template.php
View file @
0859d0f4
...
@@ -25,7 +25,7 @@ abstract class Template extends \Twig_Template
...
@@ -25,7 +25,7 @@ abstract class Template extends \Twig_Template
if
(
$this
->
env
->
hasExtension
(
'sandbox'
))
{
if
(
$this
->
env
->
hasExtension
(
'sandbox'
))
{
$this
->
env
->
getExtension
(
'sandbox'
)
->
checkMethodAllowed
(
$object
,
$item
);
$this
->
env
->
getExtension
(
'sandbox'
)
->
checkMethodAllowed
(
$object
,
$item
);
}
}
return
$object
->
$item
(
$arguments
);
return
call_user_func_array
([
$object
,
$item
],
$arguments
);
}
else
{
}
else
{
if
(
$this
->
env
->
hasExtension
(
'sandbox'
))
{
if
(
$this
->
env
->
hasExtension
(
'sandbox'
))
{
$this
->
env
->
getExtension
(
'sandbox'
)
->
checkPropertyAllowed
(
$object
,
$item
);
$this
->
env
->
getExtension
(
'sandbox'
)
->
checkPropertyAllowed
(
$object
,
$item
);
...
...
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