Skip to content

Commit

Permalink
Detect file name by import url if parameter imageId is not given.
Browse files Browse the repository at this point in the history
  • Loading branch information
eki89 committed Nov 4, 2021
1 parent b9e5edd commit 496e58c
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 496e58c

Please sign in to comment.