mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
commit
239ebf7bb6
@ -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'),
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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';
|
||||
|
||||
/*
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user