Skip to content

Commit

Permalink
Merge pull request #8 from contao-estatemanager/develop
Browse files Browse the repository at this point in the history
Detect file name by import url if parameter imageId is not given.
  • Loading branch information
eki89 authored Nov 4, 2021
2 parents b9e5edd + 496e58c commit 218a521
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Resources/contao/classes/WibImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ protected function getValueFromStringUrl($url, $parameter)
return $query[$parameter];
}
}
if (isset($parts['path']))
{
$arrPathFragments = explode('/', $parts['path']);
if (count($arrPathFragments))
{
return end($arrPathFragments);
}
}

return null;
}
Expand Down

0 comments on commit 218a521

Please sign in to comment.