Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Small fix for windows installations


Go to End


1735 Views

Avatar
Markus

Google Summer of Code Hacker, 152 Posts

24 May 2007 at 12:13am

Line 14 in sapphire/core/ManifestBuilder.php

should be changed from

define("MANIFEST_FILE", TEMP_FOLDER . "/manifest" . str_replace(array("/",":"),"_", $_SERVER['SCRIPT_FILENAME']));

to

define("MANIFEST_FILE", TEMP_FOLDER . "/manifest" . str_replace(array("/", ":", "\\"),"_", $_SERVER['SCRIPT_FILENAME']));

so that also the Windows directory delimiters ("\") are handled correctly. Another - maybe more elegant - solution would be to use the DIRECTORY_SEPARATOR constant (http://php.net/dir)