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.

Archive /

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

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

Small fix for windows installations


Reply


2 Posts   1308 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)

Avatar
Andy

230 Posts

28 May 2007 at 2:14pm

Thanks, this has been done.