From: ArthurHoaro Date: Mon, 1 Jan 2018 14:40:51 +0000 (+0100) Subject: Fix an issue preventing the Save button to appear for plugin parameters X-Git-Tag: v0.9.4~18^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=d7995542598b31378637bf457a776b52b556ffde Fix an issue preventing the Save button to appear for plugin parameters is a special variable in RainTPL used in loops --- diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index ca17b435..b2d7cdc5 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html @@ -137,9 +137,9 @@ {if="count($enabledPlugins)==0"}

{'No plugin enabled.'|t}

{else} - {$counter=0} + {$nbParameters=0} {loop="$enabledPlugins"} - {$counter=$counter+count($value.parameters)} + {$nbParameters=$nbParameters+count($value.parameters)} {if="count($value.parameters) > 0"}

{function="str_replace('_', ' ', $key)"}

@@ -161,7 +161,7 @@
{/if} {/loop} - {if="$counter===0"} + {if="$nbParameters===0"}

{'No parameter available.'|t}

{else}