mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-25 02:02:57 +01:00
Prefer dist assets when updating
This commit is contained in:
parent
e4148eef86
commit
97b229cbca
@ -17,7 +17,7 @@ class Updates extends AbstractController
|
||||
public function check()
|
||||
{
|
||||
$this->ensurePermission('updates.check');
|
||||
$updater = new Updater();
|
||||
$updater = new Updater(array('preferDistAssets' => true));
|
||||
$upToDate = $updater->checkUpdates();
|
||||
if ($upToDate) {
|
||||
JSONResponse::success($this->label('updates.status.up-to-date'), 200, array(
|
||||
@ -37,7 +37,7 @@ class Updates extends AbstractController
|
||||
public function update()
|
||||
{
|
||||
$this->ensurePermission('updates.update');
|
||||
$updater = new Updater(array('force' => true));
|
||||
$updater = new Updater(array('force' => true, 'preferDistAssets' => true));
|
||||
if ($this->option('updates.backup_before')) {
|
||||
$backupper = new Backupper();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user