mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +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\Updater;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Style\PageStyle;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
@ -135,6 +136,10 @@ class UpdateController extends AbstractController
|
||||
{
|
||||
if (is_null($this->updateChecker)) {
|
||||
$this->updateChecker = new UpdateChecker();
|
||||
$id = Settings::get('_instance_id');
|
||||
if ($id) {
|
||||
$this->updateChecker->setInstanceId($id);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->updateChecker;
|
||||
|
Loading…
Reference in New Issue
Block a user