This hopefully? addresses the pathinfo issue where a file might not have a file extension.
Also removes multiple uses of pathinfo into a single call per file.
Not sure if anything else potentially breaks after the change, UI and other features such might also want a file extension.
This hopefully? addresses the pathinfo issue where a file might not have a file extension. Also removes multiple uses of pathinfo into a single call per file. Not sure if anything else potentially breaks after the change, UI and other features such might also want a file extension.