mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixed typo
Credit to @bennothommo Co-Authored-By: LukeTowers <github@luketowers.ca>
This commit is contained in:
parent
630d543959
commit
ab6023f3e9
@ -89,7 +89,7 @@ class AutoDatasource extends Datasource implements DatasourceInterface
|
||||
|
||||
$sourcePaths = $this->getSourcePaths($source);
|
||||
|
||||
if (!empty($paths)) {
|
||||
if (!empty($sourcePaths)) {
|
||||
// Generate the path
|
||||
list($name, $extension) = $model->getFileNameParts();
|
||||
$path = $this->makeFilePath($model->getObjectTypeDirName(), $name, $extension);
|
||||
@ -507,4 +507,4 @@ class AutoDatasource extends Datasource implements DatasourceInterface
|
||||
}
|
||||
return $paths;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user