1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 00:21:02 +01:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2020-08-19 21:08:59 +02:00
commit f1db56f716
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
<input class="button2" type="submit" id="cancel" name="cancel" value="{L_CANCEL}" />
</p>
{S_FORM_TOKEN}
</fieldset>

View File

@ -53,7 +53,7 @@ class acp_search
global $user, $template, $phpbb_log, $request;
global $config, $phpbb_admin_path, $phpEx;
$submit = (isset($_POST['submit'])) ? true : false;
$submit = $request->is_set_post('submit');
if ($submit && !check_link_hash($request->variable('hash', ''), 'acp_search'))
{
@ -245,13 +245,13 @@ class acp_search
$action = $request->variable('action', '');
$this->state = explode(',', $config['search_indexing_state']);
if (isset($_POST['cancel']))
if ($request->is_set_post('cancel'))
{
$action = '';
$this->state = array();
$this->save_state();
}
$submit = $request->is_set_post('submit', false);
$submit = $request->is_set_post('submit');
if (!check_link_hash($request->variable('hash', ''), 'acp_search') && in_array($action, array('create', 'delete')))
{