[ticket/11942] Remove useless IF in templates

PHPBB3-11942
This commit is contained in:
Tristan Darricau 2014-05-26 23:35:47 +02:00
parent 12e0e358d1
commit 814d10fe5e
2 changed files with 26 additions and 31 deletions

View file

@ -2,7 +2,6 @@
<form action="{S_CONFIRM_ACTION}" method="post"> <form action="{S_CONFIRM_ACTION}" method="post">
<p>{MESSAGE_TEXT}</p> <p>{MESSAGE_TEXT}</p>
<!-- IF not S_SOFTDELETED and S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> <!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<label> <label>
<strong>{L_DELETE_PERMANENTLY}{L_COLON}</strong> <strong>{L_DELETE_PERMANENTLY}{L_COLON}</strong>
@ -15,7 +14,6 @@
<strong>{L_DELETE_REASON}{L_COLON}</strong><br /><span>{L_DELETE_REASON_EXPLAIN}</span><br /> <strong>{L_DELETE_REASON}{L_COLON}</strong><br /><span>{L_DELETE_REASON_EXPLAIN}</span><br />
<input type="text" name="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /> <input type="text" name="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" />
</label> </label>
<!-- ENDIF -->
<fieldset class="submit-buttons"> <fieldset class="submit-buttons">
<input type="button" name="confirm" value="{L_YES}" class="button1" />&nbsp; <input type="button" name="confirm" value="{L_YES}" class="button1" />&nbsp;
@ -35,7 +33,6 @@
<p>{MESSAGE_TEXT}</p> <p>{MESSAGE_TEXT}</p>
<!-- IF not S_SOFTDELETED and S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<fieldset class="fields1"> <fieldset class="fields1">
<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> <!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<dl> <dl>
@ -54,7 +51,6 @@
<dd><input type="text" name="delete_reason" id="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /></dd> <dd><input type="text" name="delete_reason" id="delete_reason" value="" class="inputbox autowidth" maxlength="120" size="45" /></dd>
</dl> </dl>
</fieldset> </fieldset>
<!-- ENDIF -->
<fieldset class="submit-buttons"> <fieldset class="submit-buttons">
{S_HIDDEN_FIELDS} {S_HIDDEN_FIELDS}

View file

@ -14,7 +14,6 @@
<p class="gen">{MESSAGE_TEXT}</p> <p class="gen">{MESSAGE_TEXT}</p>
<br /> <br />
<!-- IF not S_SOFTDELETED and S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<table border="0" width="90%" cellspacing="2" cellpadding="1"> <table border="0" width="90%" cellspacing="2" cellpadding="1">
<!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE --> <!-- IF S_ALLOWED_DELETE and S_ALLOWED_SOFTDELETE -->
<tr> <tr>
@ -31,7 +30,7 @@
</tr> </tr>
</table> </table>
<br /> <br />
<!-- ENDIF -->
{S_HIDDEN_FIELDS} {S_HIDDEN_FIELDS}
<input type="submit" name="confirm" value="{L_YES}" class="btnmain" />&nbsp;&nbsp; <input type="submit" name="confirm" value="{L_YES}" class="btnmain" />&nbsp;&nbsp;
<input type="submit" name="cancel" value="{L_NO}" class="btnlite" /> <input type="submit" name="cancel" value="{L_NO}" class="btnlite" />