Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Small fix for windows installations

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

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

Page: 1
Go to End
Author Topic: 1292 Views
  • Markus
    Google Summer of Code Hacker
    152 Posts

    Small fix for windows installations Link to this post

    Line 14 in sapphire/core/ManifestBuilder.php

    should be changed from

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


    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)

  • Andy
    230 Posts

    Re: Small fix for windows installations Link to this post

    Thanks, this has been done.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.