Remove cms.tempDir - use temp_path()
This commit is contained in:
parent
fbf46519b4
commit
8e1b4c2f68
|
|
@ -29,6 +29,10 @@ Optional things you can delete, if they do not contain anything custom.
|
|||
[DELETE] /app
|
||||
[DELETE] /storage/cache
|
||||
|
||||
### Remmoved config
|
||||
|
||||
cms.tempDir - use temp_path()
|
||||
|
||||
### Breaking code changes
|
||||
|
||||
#### Paginator / setCurrentPage
|
||||
|
|
|
|||
|
|
@ -185,17 +185,6 @@ return array(
|
|||
|
||||
'uploadsDir' => '/uploads',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Temporary directory
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specifies a directory used by the application for temporarily storing files.
|
||||
|
|
||||
*/
|
||||
|
||||
'tempDir' => storage_path().'/temp',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default permission mask
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div class="relation-widget" id="<?= $this->getId() ?>">
|
||||
<?= $this->makePartial(PATH_BASE . '/modules/backend/widgets/form/partials/_field_'.$field->type.'.htm', ['field' => $field]) ?>
|
||||
<?= $this->makePartial('~/modules/backend/widgets/form/partials/_field_'.$field->type.'.htm', ['field' => $field]) ?>
|
||||
</div>
|
||||
|
|
@ -99,7 +99,7 @@ class BrandSettings extends Model
|
|||
]);
|
||||
|
||||
$parser->parse(
|
||||
File::get(PATH_BASE.'/modules/backend/models/brandsettings/custom.less')
|
||||
File::get(base_path().'/modules/backend/models/brandsettings/custom.less')
|
||||
. self::get('custom_css')
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class Standard extends Skin
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->skinPath = $this->defaultSkinPath = PATH_BASE . '/modules/backend';
|
||||
$this->skinPath = $this->defaultSkinPath = base_path() . '/modules/backend';
|
||||
$this->publicSkinPath = $this->defaultPublicSkinPath = File::localToPublic($this->skinPath);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ class UpdateManager
|
|||
$this->versionManager = VersionManager::instance();
|
||||
$this->migrator = App::make('migrator');
|
||||
$this->repository = App::make('migration.repository');
|
||||
$this->tempDirectory = Config::get('cms.tempDir', sys_get_temp_dir());
|
||||
$this->baseDirectory = PATH_BASE;
|
||||
$this->tempDirectory = temp_path();
|
||||
$this->baseDirectory = base_path();
|
||||
$this->disableCoreUpdates = Config::get('cms.disableCoreUpdates', false);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue