diff options
author | rub <rub@piwigo.org> | 2008-03-09 07:28:04 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-03-09 07:28:04 +0000 |
commit | 6e5f8631e394d4b3950ca619232790cc8a881e3a (patch) | |
tree | 7e56e1c967e0f9deebf718aa9adfa10dc509c83b | |
parent | bf1f7c4aec50107efdc393a7cea2149a1a3854d7 (diff) |
Fix some c13y/smarty bugs
git-svn-id: http://piwigo.org/svn/trunk@2269 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/include/check_integrity.class.php | 7 | ||||
-rw-r--r-- | template/yoga/admin/check_integrity.tpl | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/admin/include/check_integrity.class.php b/admin/include/check_integrity.class.php index 298edb6e3..52c7f2642 100644 --- a/admin/include/check_integrity.class.php +++ b/admin/include/check_integrity.class.php @@ -193,8 +193,8 @@ class check_integrity { $can_select = false; $c13y_display = array( - 'ID' => $c13y['id'], - 'ANOMALY' => $c13y['anomaly'], + 'id' => $c13y['id'], + 'anomaly' => $c13y['anomaly'], 'show_ignore_msg' => false, 'show_correction_success_fct' => false, 'correction_error_fct' => '', @@ -266,7 +266,8 @@ class check_integrity $template->assign('c13y_show_submit_automatic_correction', $submit_automatic_correction); $template->assign('c13y_show_submit_ignore', $submit_ignore); - $template->assign_var_from_handle('ADMIN_CONTENT', 'check_integrity'); + $template->concat_var('ADMIN_CONTENT', $template->parse('check_integrity', true)); + } } diff --git a/template/yoga/admin/check_integrity.tpl b/template/yoga/admin/check_integrity.tpl index 1e8c65db3..1783e69e2 100644 --- a/template/yoga/admin/check_integrity.tpl +++ b/template/yoga/admin/check_integrity.tpl @@ -16,12 +16,12 @@ <tr class="{if $smarty.foreach.c13y_loop.index is odd}row1{else}row2{/if}"> <td> {if $c13y.can_select} - <input type="checkbox" name="c13y_selection[]" value="{$c13y.ID}" {$c13y.CHECKED} id="c13y_selection-{$c13y.ID}" /><label for="c13y_selection-{$c13y.ID}"></label> + <input type="checkbox" name="c13y_selection[]" value="{$c13y.id}" id="c13y_selection-{$c13y.id}" /><label for="c13y_selection-{$c13y.id}"></label> {/if} </td> - <td><label for="c13y_selection-{$c13y.ID}">{$c13y.ANOMALY}</label></td> + <td><label for="c13y_selection-{$c13y.id}">{$c13y.anomaly}</label></td> <td> - <label for="c13y_selection-{$c13y.ID}"> + <label for="c13y_selection-{$c13y.id}"> {if $c13y.show_ignore_msg} {'c13y_ignore_msg1'|@translate} <br /> |