From: ArthurHoaro Date: Mon, 1 Jan 2018 14:46:04 +0000 (+0100) Subject: Merge pull request #1044 from ArthurHoaro/hotfix/plugins-parameter-button X-Git-Tag: v0.9.4~18 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fcbc67edf072cc88a329fd6b73b002c3e2474971;hp=d77bdb432a5ad69b9167c6eada5d8713446daaeb;p=github%2Fshaarli%2FShaarli.git Merge pull request #1044 from ArthurHoaro/hotfix/plugins-parameter-button Fix an issue preventing the Save button to appear for plugin parameters --- 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}