[ticket/16913] Move progress bar code to after search state init

PHPBB3-16913
This commit is contained in:
Marc Alexander 2023-01-09 20:10:59 +01:00
parent 83dfa4847b
commit 91c83fd566
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -371,13 +371,6 @@ class acp_search
*/
private function index_action(string $id, string $mode, string $action): void
{
// Start displaying progress on first submit
if ($this->request->is_set_post('submit'))
{
$this->display_progress_bar($id, $mode);
return;
}
// For some this may be of help...
@ini_set('memory_limit', '128M');
@ -399,6 +392,13 @@ class acp_search
}
}
// Start displaying progress on first submit
if ($this->request->is_set_post('submit'))
{
$this->display_progress_bar($id, $mode);
return;
}
// Execute create/delete
$type = $this->search_state_helper->type();
$action = $this->search_state_helper->action();