Fix smarty warnings for version 3
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Fri, 24 Feb 2017 22:52:48 +0000 (11:52 +1300)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Thu, 9 Mar 2017 18:06:29 +0000 (18:06 +0000)
templates/index.tpl
templates/logs.tpl
templates/udmin.tpl

index 41a3468ed915b8b3e3d7ccab0f1f128d13b0094c..e6afd8ad8394fe1890744363e3b0ebc8f73b2c16 100644 (file)
@@ -280,8 +280,8 @@ color:#FF6600;
        <div class="spacer"></div>
 
 <div class="content">
+{assign var=mass_delete_size value=count($squashed)}
 {foreach item=item key=id from=$squashed}
-{counter assign=mass_delete_size print=false}
 {if $item.squashed}{*These items are in chunks / uploaded by the squasher tool*}
 
 {if $item.hidden eq false OR $user_level > 99 }
index 2b06c19f2c7ae350491525c81244224327f77dd1..ff3154bbff362acc452e72688270bb81056a0e8d 100644 (file)
@@ -274,7 +274,6 @@ background-color:#EEEEAA;
 background-color:#EEAAAA;
 }
 {/literal}
-{foreach item=style_row from=$style}{$style_row}{/foreach}
 </style>
 </head>
 <body align="center" style="min-width:1000px;">
index a89b9b8579100b0d9a1a82f40a952039b42c05a9..8a6935781b13dc96664154b8a3efcde61ddb9869 100644 (file)
@@ -213,9 +213,6 @@ background-color:#EEAAAA;
 }
 {/literal}
 
-{foreach item=style_row from=$style}{$style_row}
-{/foreach}
-
 </style>
 <script>
 function confirm_delete(formID) {ldelim}
@@ -282,4 +279,4 @@ function confirm_delete(formID) {ldelim}
 </div>
 {if $debug}{debug}{/if}
 </body>
-</html>
\ No newline at end of file
+</html>