Skip to content

Commit

Permalink
fixing the DIRECTORY_SEPARATOR for windows server environments
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Luraine <fabrice.luraine@sofa-design.net>
  • Loading branch information
abrcoelho authored and Fabrice Luraine committed Aug 25, 2009
1 parent 3841c6c commit abad3b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/limonade.php
Expand Up @@ -1505,6 +1505,8 @@ function url_for($params = null)
$base_uri = option('base_uri');
$path = file_path($base_uri, $path);
}

if(DIRECTORY_SEPARATOR != '/') $path = str_replace(DIRECTORY_SEPARATOR, '/', $path);

return $path;
}
Expand Down

0 comments on commit abad3b3

Please sign in to comment.