Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with Path on Windows #1170
When trying to use the getDirectory() function from the Extensible Class (In Addon), path returns correctly with path to addon directory.
When trying to use the getDirectory() function from the Extensible Class (In Addon), path returns "".
Steps to reproduce
Operating system: Windows 10
Web server: Apache
PHP version: 7.0.0
Statamic version: Latest
Updated from an older Statamic or fresh install: Fresh
List of installed addons: CPTheme - Creating
Change all hardcoded "/" to DIRECTORY_SEPARATOR in Path.php file (And possibly other files that have this same sort of setup?) - Example of fix.