mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
f1db56f716
2 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@
|
||||||
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
|
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
|
||||||
<p class="submit-buttons">
|
<p class="submit-buttons">
|
||||||
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
||||||
<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>
|
</p>
|
||||||
{S_FORM_TOKEN}
|
{S_FORM_TOKEN}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -53,7 +53,7 @@ class acp_search
|
||||||
global $user, $template, $phpbb_log, $request;
|
global $user, $template, $phpbb_log, $request;
|
||||||
global $config, $phpbb_admin_path, $phpEx;
|
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'))
|
if ($submit && !check_link_hash($request->variable('hash', ''), 'acp_search'))
|
||||||
{
|
{
|
||||||
|
@ -245,13 +245,13 @@ class acp_search
|
||||||
$action = $request->variable('action', '');
|
$action = $request->variable('action', '');
|
||||||
$this->state = explode(',', $config['search_indexing_state']);
|
$this->state = explode(',', $config['search_indexing_state']);
|
||||||
|
|
||||||
if (isset($_POST['cancel']))
|
if ($request->is_set_post('cancel'))
|
||||||
{
|
{
|
||||||
$action = '';
|
$action = '';
|
||||||
$this->state = array();
|
$this->state = array();
|
||||||
$this->save_state();
|
$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')))
|
if (!check_link_hash($request->variable('hash', ''), 'acp_search') && in_array($action, array('create', 'delete')))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue