mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #887, $selection is never set on PHP side, no need to use it in template
... and it makes the template compatible with PHP 7.2
This commit is contained in:
@@ -24,7 +24,7 @@ var missingConfirm = "{'You need to confirm deletion'|translate|escape:javascrip
|
|||||||
var missingUsername = "{'Please, enter a login'|translate|escape:javascript}";
|
var missingUsername = "{'Please, enter a login'|translate|escape:javascript}";
|
||||||
|
|
||||||
var allUsers = [{$all_users}];
|
var allUsers = [{$all_users}];
|
||||||
var selection = [{$selection}];
|
var selection = [];
|
||||||
var pwg_token = "{$PWG_TOKEN}";
|
var pwg_token = "{$PWG_TOKEN}";
|
||||||
|
|
||||||
var protectedUsers = [{$protected_users}];
|
var protectedUsers = [{$protected_users}];
|
||||||
@@ -965,8 +965,8 @@ span.infos, span.errors {background-image:none; padding:2px 5px; margin:0;border
|
|||||||
<fieldset id="action">
|
<fieldset id="action">
|
||||||
<legend>{'Action'|@translate}</legend>
|
<legend>{'Action'|@translate}</legend>
|
||||||
|
|
||||||
<div id="forbidAction"{if count($selection) != 0} style="display:none"{/if}>{'No user selected, no action possible.'|@translate}</div>
|
<div id="forbidAction">{'No user selected, no action possible.'|@translate}</div>
|
||||||
<div id="permitAction"{if count($selection) == 0} style="display:none"{/if}>
|
<div id="permitAction" style="display:none">
|
||||||
|
|
||||||
<select name="selectAction">
|
<select name="selectAction">
|
||||||
<option value="-1">{'Choose an action'|@translate}</option>
|
<option value="-1">{'Choose an action'|@translate}</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user