mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 14:46:27 +02:00
Update adapter to not use phone number anymore
This commit is contained in:
parent
d5be760843
commit
78abbef26e
5 changed files with 15 additions and 26 deletions
|
@ -82,7 +82,7 @@ class Phone extends AbstractDaemon
|
|||
|
||||
//Instanciate adapter
|
||||
$adapter_class = $this->phone['adapter'];
|
||||
$this->adapter = new $adapter_class($this->phone['number'], $this->phone['adapter_datas']);
|
||||
$this->adapter = new $adapter_class($this->phone['adapter_datas']);
|
||||
|
||||
$this->logger->info('Starting Phone daemon with pid ' . getmypid());
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ class Phone extends AbstractDaemon
|
|||
|
||||
$this->process_for_transfer($sms, $user_settings);
|
||||
|
||||
$internal_received->create($this->phone['id_user'], $sms['at'], $sms['text'], $sms['origin'], $sms['destination'], 'unread', $is_command);
|
||||
$internal_received->create($this->phone['id_user'], $this->phone['id'], $sms['at'], $sms['text'], $sms['origin'], 'unread', $is_command);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue