projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25462c1
)
JsTemplate.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:45:34 +0000
(17:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:45:34 +0000
(17:45 +0800)
JsTemplate.php
patch
|
blob
|
history
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
b720d0e
..
b066c54
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-119,13
+119,14
@@
class Pman_Core_JsTemplate extends Pman {
case (!strlen($item)):
continue;
- if ($inscript && ($item != '{end:}')) {
+ case ($inscript && ($item != '{end:}')):
$ret[] = $item;
- }
- if ($inscript && ($item == '{end:}')) {
+ continue;
+
+ case ($inscript && ($item == '{end:}')):
$inscript = false;
-
- }
+ continue;
+
case ($item[0] != '{'):
if (!strlen(trim($item))) {
continue;