change deprecated CSV export code
This commit is contained in:
parent
ac7ae90310
commit
b5d6936074
@ -36,7 +36,7 @@ class Csv implements RendererInterface
|
|||||||
$csv = $this->getCsv();
|
$csv = $this->getCsv();
|
||||||
$csv->insertOne( $fieldNames );
|
$csv->insertOne( $fieldNames );
|
||||||
$csv->insertAll( $rows );
|
$csv->insertAll( $rows );
|
||||||
return $csv->toString();
|
return method_exists($csv, 'getContent') ? $csv->getContent() : (string) $csv;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
/** @var RenderException $newException */
|
/** @var RenderException $newException */
|
||||||
$newException = oxNew(RenderException::class, $e->getMessage(), $e->getCode(), $e );
|
$newException = oxNew(RenderException::class, $e->getMessage(), $e->getCode(), $e );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user