mirror of https://github.com/MISP/MISP
chg: [internal] Use checkMISPVersion rather than duplicate impl
parent
cebe7de575
commit
22aac8e235
|
@ -4054,10 +4054,7 @@ class Server extends AppModel
|
||||||
if (empty($user)) {
|
if (empty($user)) {
|
||||||
$user = array('Organisation' => array('name' => 'SYSTEM'), 'email' => 'SYSTEM', 'id' => 0);
|
$user = array('Organisation' => array('name' => 'SYSTEM'), 'email' => 'SYSTEM', 'id' => 0);
|
||||||
}
|
}
|
||||||
App::uses('Folder', 'Utility');
|
$localVersion = $this->checkMISPVersion();
|
||||||
$file = new File(ROOT . DS . 'VERSION.json', true);
|
|
||||||
$localVersion = json_decode($file->read(), true);
|
|
||||||
$file->close();
|
|
||||||
$server = $this->find('first', array('conditions' => array('Server.id' => $id)));
|
$server = $this->find('first', array('conditions' => array('Server.id' => $id)));
|
||||||
$HttpSocket = $this->setupHttpSocket($server, $HttpSocket);
|
$HttpSocket = $this->setupHttpSocket($server, $HttpSocket);
|
||||||
$request = $this->setupSyncRequest($server);
|
$request = $this->setupSyncRequest($server);
|
||||||
|
|
Loading…
Reference in New Issue