Set correct instance ID when checking updates manually

This commit is contained in:
Dmitriy Simushev 2015-06-05 14:38:18 +00:00
parent 8c574ec88c
commit 2cbb0c4134

View File

@ -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;