Implemented DataPaths for packages
This commit is contained in:
parent
8557c33b4a
commit
233d5ce6d2
2 changed files with 5 additions and 5 deletions
|
@ -959,8 +959,8 @@
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if($filesystem->exists(PathFinder::getDataPath() . DIRECTORY_SEPARATOR . 'data'))
|
if($filesystem->exists(PathFinder::getDataPath(Scopes::System)))
|
||||||
$filesystem->chmod(PathFinder::getDataPath() . DIRECTORY_SEPARATOR . 'data', 0777, 0000, true);
|
$filesystem->chmod(PathFinder::getDataPath(Scopes::System), 0777, 0000, true);
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
|
@ -969,8 +969,8 @@
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if($filesystem->exists(PathFinder::getCachePath()))
|
if($filesystem->exists(PathFinder::getCachePath(Scopes::System)))
|
||||||
$filesystem->chmod(PathFinder::getCachePath(), 0777, 0000, true);
|
$filesystem->chmod(PathFinder::getCachePath(Scopes::System), 0777, 0000, true);
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
if(!Validate::packageName($package))
|
if(!Validate::packageName($package))
|
||||||
throw new InvalidPackageNameException($package);
|
throw new InvalidPackageNameException($package);
|
||||||
|
|
||||||
return self::getDataPath() . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . $package;
|
return self::getDataPath(Scopes::System) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . $package;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue