Merge pull request #1701 from gpasztor87/patch-1

Storage path
This commit is contained in:
Samuel Georges 2016-01-16 09:06:27 +11:00
commit 239ebf7bb6
5 changed files with 13 additions and 13 deletions

View File

@ -4,14 +4,14 @@ $warnings = [];
$writablePaths = [
temp_path(),
themes_path(),
base_path().'/storage',
base_path().'/storage/app',
base_path().'/storage/logs',
base_path().'/storage/framework',
base_path().'/storage/cms',
base_path().'/storage/cms/cache',
base_path().'/storage/cms/twig',
base_path().'/storage/cms/combiner',
storage_path(),
storage_path('app'),
storage_path('logs'),
storage_path('framework'),
storage_path('cms'),
storage_path('cms/cache'),
storage_path('cms/twig'),
storage_path('cms/combiner'),
];
$requiredExtensions = [
'GD' => extension_loaded('gd'),

View File

@ -171,7 +171,7 @@ class CombineAssets
}
$this->localPath = $cacheInfo['path'];
$this->storagePath = storage_path().'/cms/combiner/assets';
$this->storagePath = storage_path('cms/combiner/assets');
$combiner = $this->prepareCombiner($cacheInfo['files']);
$contents = $combiner->dump();
@ -278,7 +278,7 @@ class CombineAssets
}
$this->localPath = $localPath;
$this->storagePath = storage_path().'/cms/combiner/assets';
$this->storagePath = storage_path('cms/combiner/assets');
list($assets, $extension) = $this->prepareAssets($assets);

View File

@ -66,7 +66,7 @@ class PluginManager
protected function init()
{
$this->bindContainerObjects();
$this->metaFile = storage_path() . '/cms/disabled.json';
$this->metaFile = storage_path('cms/disabled.json');
$this->loadDisabled();
$this->loadPlugins();
$this->loadDependencies();

View File

@ -178,7 +178,7 @@ class OctoberUtil extends Command
}
$totalCount = 0;
$uploadsPath = Config::get('filesystems.disks.local.root', storage_path().'/app');
$uploadsPath = Config::get('filesystems.disks.local.root', storage_path('app'));
$uploadsPath .= '/uploads';
/*

View File

@ -22,7 +22,7 @@ class File extends FileBase
*/
protected function getLocalRootPath()
{
return Config::get('filesystems.disks.local.root', storage_path().'/app');
return Config::get('filesystems.disks.local.root', storage_path('app'));
}
/**