Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

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: 1269 Views
  • Markus
    Avatar
    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']));

    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)

  • Andy
    Avatar
    230 Posts

    Re: Small fix for windows installations Link to this post

    Thanks, this has been done.

    1269 Views
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.