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
folderlist joomla core field returns full paths instead of folder path #11102
Steps to reproduce the issue
This issue can be reproduce on windows servers with backslash as a folder separator.
You can see this in DJ-MegaMenu module where folderlist field is used for selecting theme
System information (as much as possible)
This can be fixed by replacing the 189 line in libraries/joomla/form/fields/folderlist.php file
not solved the problem.
so, for a while i add code to replace backslash to forwardslash on line 221, so it will be
I'm working on wamp in windows 7, have not test it on another environment yet.
The same $path is used as a starting point to find folders, then the $path is removed from folder paths, so how can you get backslashes in the returned folder list while JFolder::_items function use clean text slash and not DIRECTORY_SEPARATON ?
Is there anyone who can check this and create a pull request?