diff --git a/src/Resources/contao/classes/BannerInternal.php b/src/Resources/contao/classes/BannerInternal.php index e124442..81f02ee 100644 --- a/src/Resources/contao/classes/BannerInternal.php +++ b/src/Resources/contao/classes/BannerInternal.php @@ -109,13 +109,13 @@ public function generateImageData() $rootDir = $container->getParameter('kernel.project_dir'); $FileSrc = $container ->get('contao.image.image_factory') - ->create($rootDir.'/' . \System::urlEncode($objFile->path), [$arrImageSizenNew[0], $arrImageSizenNew[1], 'proportional']) + ->create($rootDir.'/' . $objFile->path, [$arrImageSizenNew[0], $arrImageSizenNew[1], 'proportional']) ->getUrl($rootDir); //alt $picture = \Picture::create(\System::urlEncode($objFile->path), array($arrImageSizenNew[0], $arrImageSizenNew[1], $arrNewSizeValues[2]))->getTemplateData(); $picture = $container ->get('contao.image.picture_factory') - ->create($rootDir . '/' . \System::urlEncode($objFile->path), $arrImageSizenNew); + ->create($rootDir . '/' . $objFile->path, $arrImageSizenNew); $picture = array ( 'img' => $picture->getImg(TL_ROOT, TL_FILES_URL), diff --git a/src/Resources/contao/classes/DcaBanner.php b/src/Resources/contao/classes/DcaBanner.php index 6b47db3..406c134 100644 --- a/src/Resources/contao/classes/DcaBanner.php +++ b/src/Resources/contao/classes/DcaBanner.php @@ -176,7 +176,7 @@ protected function listBannerInternal($row) $rootDir = $container->getParameter('kernel.project_dir'); $banner_image = $container ->get('contao.image.image_factory') - ->create($rootDir.'/'.\System::urlEncode($objFile->path), [$intWidth, $intHeight, 'proportional']) + ->create($rootDir.'/'.$objFile->path, [$intWidth, $intHeight, 'proportional']) ->getUrl($rootDir); } break; diff --git a/src/Resources/contao/config/config.php b/src/Resources/contao/config/config.php index 1c2c56d..7493971 100644 --- a/src/Resources/contao/config/config.php +++ b/src/Resources/contao/config/config.php @@ -14,7 +14,7 @@ */ define('BANNER_VERSION', '1.0'); -define('BANNER_BUILD' , '4'); +define('BANNER_BUILD' , '5'); /** * -------------------------------------------------------------------------