diff options
| author | Uwe.Tews <uwe.tews@localhost> | 2009-04-21 18:02:34 +0000 |
|---|---|---|
| committer | Uwe.Tews <uwe.tews@localhost> | 2009-04-21 18:02:34 +0000 |
| commit | 453d8a23dacfd5da764e66cf8730f4fee2cfefe7 (patch) | |
| tree | 09fc6da3933b3efb1270abc6a60e917d3c0dcbb3 /libs/debug.tpl | |
| parent | 380cb27945251c0024c53c8883bf6c8c99e83ad9 (diff) | |
| download | smarty-453d8a23dacfd5da764e66cf8730f4fee2cfefe7.tar.gz smarty-453d8a23dacfd5da764e66cf8730f4fee2cfefe7.tar.bz2 smarty-453d8a23dacfd5da764e66cf8730f4fee2cfefe7.zip | |
- change of new style syntax for forach. Now: {foreach $array as $var} like in PHP
Diffstat (limited to 'libs/debug.tpl')
| -rw-r--r-- | libs/debug.tpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/debug.tpl b/libs/debug.tpl index 97fd8deb..d7cfee10 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -89,7 +89,7 @@ td { <h2>included templates & config files (load time in seconds)</h2>
<div>
-{foreach $template in $template_data}
+{foreach $template_data as $template}
<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"})
@@ -101,7 +101,7 @@ td { <h2>assigned template variables</h2>
<table id="table_assigned_vars">
- {foreach $vars in $assigned_vars}
+ {foreach $assigned_vars as $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>
@@ -111,7 +111,7 @@ td { <h2>assigned config file variables (outer template scope)</h2>
<table id="table_config_vars">
- {foreach $vars in $config_vars}
+ {foreach $config_vars as $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>
|
