protected function downloadListBackup()
    {
        $backup_id = $this->getQuery('download');

        if (empty($backup_id)) {
            return null;
        }

        $this->controlAccess('backup_download');

        $backup = $this->backup->get($backup_id);

        if (!empty($backup['path'])) {
            $this->download(gplcart_file_absolute($backup['path']));
        }
    }
protected function downloadListBackup()
    {
        $backup_id = $this->getQuery('download');

        if (empty($backup_id)) {
            return null;
        }

        $this->controlAccess('backup_download');

        $backup = $this->backup->get($backup_id);

        if (!empty($backup['path'])) {
            $this->download(gplcart_file_absolute($backup['path']));
        }
    }
protected function downloadListBackup ( ) { $ backup_id = $ this -> getQuery ( 'download' ) ; if ( empty ( $ backup_id ) ) { return null ; } $ this -> controlAccess ( 'backup_download' ) ; $ backup = $ this -> backup -> get ( $ backup_id ) ; if ( ! empty ( $ backup [ 'path' ] ) ) { $ this -> download ( gplcart_file_absolute ( $ backup [ 'path' ] ) ) ; } }
Downloads a backup
Downloads a backup