]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix an issue preventing the Save button to appear for plugin parameters 1044/head
authorArthurHoaro <arthur@hoa.ro>
Mon, 1 Jan 2018 14:40:51 +0000 (15:40 +0100)
committerArthurHoaro <arthur@hoa.ro>
Mon, 1 Jan 2018 14:40:51 +0000 (15:40 +0100)
 is a special variable in RainTPL used in loops

tpl/default/pluginsadmin.html

index ca17b435cd3fdff42cca0d5d1b65269ca406ce6b..b2d7cdc5900fff5967f6d0f6acc9afee1c7c0920 100644 (file)
           {if="count($enabledPlugins)==0"}
             <p class="center">{'No plugin enabled.'|t}</p>
           {else}
-            {$counter=0}
+            {$nbParameters=0}
             {loop="$enabledPlugins"}
-              {$counter=$counter+count($value.parameters)}
+              {$nbParameters=$nbParameters+count($value.parameters)}
               {if="count($value.parameters) > 0"}
                 <div class="plugin_parameters">
                   <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
                 </div>
               {/if}
             {/loop}
-            {if="$counter===0"}
+            {if="$nbParameters===0"}
               <p class="center">{'No parameter available.'|t}</p>
             {else}
               <div class="center">