From e9a3c303fc2fb07e6947f10d5896774fedf869db Mon Sep 17 00:00:00 2001 From: Pabloo474 <159337840+Pabloo474@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:14:38 +0100 Subject: [PATCH] TTK-27403: Update dirname variable (#685) * TTK-27403: Update dirname variable * fix: phpcsfixer --------- Co-authored-by: pablo.garcia Co-authored-by: Pablo Ogando Ferreira --- src/Pumukit/EncoderBundle/Services/JobRender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pumukit/EncoderBundle/Services/JobRender.php b/src/Pumukit/EncoderBundle/Services/JobRender.php index 6aff56b9d..db98e7f68 100644 --- a/src/Pumukit/EncoderBundle/Services/JobRender.php +++ b/src/Pumukit/EncoderBundle/Services/JobRender.php @@ -49,7 +49,7 @@ public function renderBat(Job $job): string $vars['input'] = $job->getPathIni(); $vars['output'] = $job->getPathEnd(); - $vars['output_dirname'] = dirname($vars['output']); + $vars['output_dirname'] = dirname($vars['output']).'/'.pathinfo($vars['output'], PATHINFO_FILENAME); $vars['output_basename'] = basename($vars['output']); foreach (range(1, 9) as $identifier) {