Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
abad80d8
Commit
abad80d8
authored
Oct 15, 2010
by
Kamil Szot
Committed by
Jordi Boggiano
Oct 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually delegate execution to new instance and return result instead just returning the instance.
parent
9d77fe2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Core.php
lib/Dwoo/Core.php
+2
-1
include.php
lib/plugins/builtin/functions/include.php
+1
-1
No files found.
lib/Dwoo/Core.php
View file @
abad80d8
...
...
@@ -316,7 +316,8 @@ class Dwoo_Core
{
// a render call came from within a template, so we need a new dwoo instance in order to avoid breaking this one
if
(
$this
->
template
instanceof
Dwoo_ITemplate
)
{
return
clone
$this
;
$clone
=
clone
$this
;
return
$clone
->
get
(
$_tpl
,
$data
,
$_compiler
,
$_output
);
}
// auto-create template if required
...
...
lib/plugins/builtin/functions/include.php
View file @
abad80d8
...
...
@@ -62,7 +62,7 @@ function Dwoo_Plugin_include(Dwoo_Core $dwoo, $file, $cache_time = null, $cache_
$vars
=
$rest
+
$vars
;
}
$clone
=
$dwoo
->
get
(
null
)
;
$clone
=
clone
$dwoo
;
$out
=
$clone
->
get
(
$include
,
$vars
);
if
(
$assign
!==
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