Skip to content

Commit fc8704f

Browse files
committed
update Updater.php
1 parent bc370de commit fc8704f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ private function Extract()
305305
private function Upgrade()
306306
{
307307
sleep(10);
308-
$plugin_paths = $this->MapPath($this->dir, ['path' => [$this->dir . '/.git', $this->dir . '/update', $this->dir . '/update.lock', $this->dir.'/vendor'], 'filename' => ['.gitignore']]);
308+
$plugin_paths = $this->MapPath($this->dir, ['path' => [$this->dir . '/.git', $this->dir . '/update', $this->dir . '/update.lock', $this->dir.'/vendor', $this->dir.'/composer.phar'], 'filename' => ['.gitignore']]);
309309
$this->log[] = [date("Y-m-d H:i:s"), "Plugin list:\n" . json_encode($plugin_paths, JSON_PRETTY_PRINT)];
310310

311311
$plugin_relative_paths = array_map(function ($plugin_path) {
312312
return substr_replace($plugin_path, '', 0, strlen($this->dir));
313313
}, $plugin_paths);
314314

315-
$upgrade_paths = $this->MapPath($this->dir . "/update/extract/tmp_{$this->repository}", ['path' => [$this->dir . '/.git', $this->dir . '/update.lock', $this->dir.'/vendor'], 'filename' => ['.gitignore']]);
315+
$upgrade_paths = $this->MapPath($this->dir . "/update/extract/tmp_{$this->repository}", ['path' => [$this->dir . '/.git', $this->dir . '/update.lock', $this->dir.'/vendor', $this->dir.'/composer.phar'], 'filename' => ['.gitignore']]);
316316
$this->log[] = [date("Y-m-d H:i:s"), "Upgrade list:\n" . json_encode($upgrade_paths, JSON_PRETTY_PRINT)];
317317

318318
$upgrade_relative_paths = array_map(function ($upgrade_path) {

0 commit comments

Comments
 (0)