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
07e1dd9a
Commit
07e1dd9a
authored
Jul 17, 2010
by
Jordi Boggiano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #75: Nested dynamic tags are generating parse errors in compiled templates
parent
71c1d67c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG
CHANGELOG
+2
-0
dynamic.php
lib/plugins/builtin/blocks/dynamic.php
+5
-0
No files found.
CHANGELOG
View file @
07e1dd9a
...
...
@@ -25,6 +25,8 @@
Dwoo_Security_Policy
(
see
allowMethod
()),
this
is
hardly
efficient
though
for
instance
calls
since
it
has
to
do
runtime
checks
so
use
it
with
caution
*
Fixed
PHP
parse
errors
being
generated
in
compiled
templates
when
{
dynamic
}
was
nested
*
Added
$
this
->
viewParam
support
to
ZendFramework
adapter
through
a
Dwoo_Adapters_ZendFramework_Dwoo
class
that
extends
Dwoo
,
you
should
use
this
if
you
called
setEngine
()
on
the
ZF
view
...
...
lib/plugins/builtin/blocks/dynamic.php
View file @
07e1dd9a
...
...
@@ -27,6 +27,8 @@ class Dwoo_Plugin_dynamic extends Dwoo_Block_Plugin implements Dwoo_ICompilable_
public
static
function
postProcessing
(
Dwoo_Compiler
$compiler
,
array
$params
,
$prepend
,
$append
,
$content
)
{
try
{
$compiler
->
findBlock
(
'dynamic'
);
$output
=
Dwoo_Compiler
::
PHP_OPEN
.
'if($doCache) {'
.
"
\n\t
"
.
'echo \'<dwoo:dynamic_\'.$dynamicId.\'>'
.
...
...
@@ -46,6 +48,9 @@ class Dwoo_Plugin_dynamic extends Dwoo_Block_Plugin implements Dwoo_ICompilable_
$output
.=
"
\n
}"
.
Dwoo_Compiler
::
PHP_CLOSE
;
return
$output
;
}
catch
(
Dwoo_Compilation_Exception
$e
)
{
return
$content
;
}
}
public
static
function
unescape
(
$output
,
$dynamicId
,
$compiledFile
)
...
...
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