public function init() { parent::init(); if (empty($this->context['autoconfirm'])) { $this->context['autoconfirm'] = false; } $this->context['sendlog'] = !empty($this->context['sendlog']); if ($this->context['zip_as_dir']) { $this->context['extract_dir'] = $this->context['zip']; } }