mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#2029
This commit is contained in:
@@ -73,6 +73,11 @@ class WireTempDir extends Wire {
|
|||||||
if(empty($name)) $name = $this->createName();
|
if(empty($name)) $name = $this->createName();
|
||||||
if(is_object($name)) $name = wireClassName($name, false);
|
if(is_object($name)) $name = wireClassName($name, false);
|
||||||
|
|
||||||
|
if($basePath && !$this->wire()->files->allowPath($basePath, true)) {
|
||||||
|
$this->log("Given base path $basePath is not within ProcessWire assets so has been replaced");
|
||||||
|
$basePath = '';
|
||||||
|
}
|
||||||
|
|
||||||
$basePath = $this->classRootPath(true, $basePath);
|
$basePath = $this->classRootPath(true, $basePath);
|
||||||
$this->classRoot = $basePath;
|
$this->classRoot = $basePath;
|
||||||
$this->tempDirRoot = $basePath . ".$name/";
|
$this->tempDirRoot = $basePath . ".$name/";
|
||||||
|
Reference in New Issue
Block a user