mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Logical error. $base should use PATHINFO_FILENAME instead of PATHINFO_BASENAME in order to exclude extension; final $name should include a period before $ext as $ext uses PATHINFO_EXTENSION which excludes the period.