mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
DiskResourceProvider: do not trim backslashes from path when we're not on Windows
This commit is contained in:
parent
2170f81cdd
commit
49bd58a86a
@ -43,7 +43,7 @@ class DiskResourceProvider implements ResourceProvider{
|
|||||||
private $file;
|
private $file;
|
||||||
|
|
||||||
public function __construct(string $path){
|
public function __construct(string $path){
|
||||||
$this->file = rtrim($path, "/\\") . "/";
|
$this->file = rtrim(str_replace(DIRECTORY_SEPARATOR, "/", $path), "/") . "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user