Skip to content
Snippets Groups Projects
Commit 14755570 authored by Kevin Rice's avatar Kevin Rice
Browse files

rolls back deprecated function update to support 10.1

parent 97170ab8
No related branches found
Tags 9098
No related merge requests found
......@@ -11,7 +11,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\StringTranslation\ByteSizeMarkup;
use Drupal\Core\Url;
use Drupal\simple_survey\Entity\SimpleSurvey;
use Drupal\simple_survey\Entity\SurveyAnswer;
......@@ -402,7 +401,7 @@ class ResponseExportService implements ContainerInjectionInterface {
'@max' => $max,
'@total' => $context['sandbox']['max'],
'@filename' => $filename,
'@fileSize' => ByteSizeMarkup::create($file->getSize()),
'@fileSize' => format_size($file->getSize()),
]);
foreach ($responses as $response) {
......@@ -489,7 +488,7 @@ class ResponseExportService implements ContainerInjectionInterface {
'@max' => $max,
'@total' => $context['sandbox']['max'],
'@filename' => $filename,
'@fileSize' => ByteSizeMarkup::create($file->getSize()),
'@fileSize' => format_size($file->getSize()),
]);
if ($context['sandbox']['progress'] != $context['sandbox']['max']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment