diff options
| author | Uwe.Tews <uwe.tews@localhost> | 2009-04-05 17:56:04 +0000 |
|---|---|---|
| committer | Uwe.Tews <uwe.tews@localhost> | 2009-04-05 17:56:04 +0000 |
| commit | fa3a23daceafa2f3332429f3cc9cef2d64cd34b2 (patch) | |
| tree | 1a311a7c0d51e6e594195918d6d97b0b244229e7 /libs/debug.tpl | |
| parent | 827e9b08d81c9bbec4975d65f585f02574d1863d (diff) | |
| download | smarty-fa3a23daceafa2f3332429f3cc9cef2d64cd34b2.tar.gz smarty-fa3a23daceafa2f3332429f3cc9cef2d64cd34b2.tar.bz2 smarty-fa3a23daceafa2f3332429f3cc9cef2d64cd34b2.zip | |
- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion
Diffstat (limited to 'libs/debug.tpl')
| -rw-r--r-- | libs/debug.tpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/debug.tpl b/libs/debug.tpl index 585573c4..97fd8deb 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -89,33 +89,33 @@ td { <h2>included templates & config files (load time in seconds)</h2>
<div>
-{for $template in $template_data}
+{foreach $template in $template_data}
<font color=brown>{$template.name}</font>
<span class="exectime">
(compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"})
</span>
<br>
-{/for}
+{/foreach}
</div>
<h2>assigned template variables</h2>
<table id="table_assigned_vars">
- {for $vars in $assigned_vars}
+ {foreach $vars in $assigned_vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<th>${$vars@key|escape:'html'}</th>
<td>{$vars|debug_print_var}</td></tr>
- {/for}
+ {/foreach}
</table>
<h2>assigned config file variables (outer template scope)</h2>
<table id="table_config_vars">
- {for $vars in $config_vars}
+ {foreach $vars in $config_vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<th>{$vars@key|escape:'html'}</th>
<td>{$vars|debug_print_var}</td></tr>
- {/for}
+ {/foreach}
</table>
</body>
|
