mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Set correct instance ID when checking updates manually
This commit is contained in:
parent
8c574ec88c
commit
2cbb0c4134
@ -21,6 +21,7 @@ namespace Mibew\Controller;
|
|||||||
|
|
||||||
use Mibew\Maintenance\UpdateChecker;
|
use Mibew\Maintenance\UpdateChecker;
|
||||||
use Mibew\Maintenance\Updater;
|
use Mibew\Maintenance\Updater;
|
||||||
|
use Mibew\Settings;
|
||||||
use Mibew\Style\PageStyle;
|
use Mibew\Style\PageStyle;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
@ -135,6 +136,10 @@ class UpdateController extends AbstractController
|
|||||||
{
|
{
|
||||||
if (is_null($this->updateChecker)) {
|
if (is_null($this->updateChecker)) {
|
||||||
$this->updateChecker = new UpdateChecker();
|
$this->updateChecker = new UpdateChecker();
|
||||||
|
$id = Settings::get('_instance_id');
|
||||||
|
if ($id) {
|
||||||
|
$this->updateChecker->setInstanceId($id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->updateChecker;
|
return $this->updateChecker;
|
||||||
|
Loading…
Reference in New Issue
Block a user