diff options
| author | MateBartus <mate.bartus@gmail.com> | 2015-06-03 01:31:48 +0200 |
|---|---|---|
| committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 01:27:59 +0200 |
| commit | b7ef709549597f2fa4f9c8525bfd602f81644530 (patch) | |
| tree | 6997b2b0895b542c22fabe34f852ee65b1a6334e /phpBB/install | |
| parent | 37b0134aa437e3e874464d3cf0d29c34a8da184a (diff) | |
| download | forums-b7ef709549597f2fa4f9c8525bfd602f81644530.tar forums-b7ef709549597f2fa4f9c8525bfd602f81644530.tar.gz forums-b7ef709549597f2fa4f9c8525bfd602f81644530.tar.bz2 forums-b7ef709549597f2fa4f9c8525bfd602f81644530.tar.xz forums-b7ef709549597f2fa4f9c8525bfd602f81644530.zip | |
[ticket/13740] Implement progress bar for AJAX UI
PHPBB3-13740
Diffstat (limited to 'phpBB/install')
| -rw-r--r-- | phpBB/install/helper/iohandler/ajax_iohandler.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/install/helper/iohandler/ajax_iohandler.php b/phpBB/install/helper/iohandler/ajax_iohandler.php index 44a185139e..960dd615b5 100644 --- a/phpBB/install/helper/iohandler/ajax_iohandler.php +++ b/phpBB/install/helper/iohandler/ajax_iohandler.php @@ -177,6 +177,16 @@ class ajax_iohandler extends iohandler_base $this->form = ''; } + // If current task name is set, we push progress message to the client side + if (!empty($this->current_task_name)) + { + $json_array['progress'] = array( + 'task_name' => $this->current_task_name, + 'task_num' => $this->current_task_progress, + 'task_count' => $this->task_progress_count, + ); + } + $this->errors = array(); $this->warnings = array(); $this->logs = array(); @@ -185,6 +195,15 @@ class ajax_iohandler extends iohandler_base } /** + * {@inheritdoc} + */ + public function set_progress($task_lang_key, $task_number) + { + parent::set_progress($task_lang_key, $task_number); + $this->send_response(); + } + + /** * Callback function for language replacing * * @param array $matches |
