Commit 8ff33644 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1134 Check for 'secondarycontact' capability support to send

additional contact folders, print capabilities in DEBUG level.

Released under the Affero GNU General Public License (AGPL) version 3.
parent b82ec8d0
......@@ -95,6 +95,7 @@ class DeviceManager {
if ($this->IsKoe() && $this->device->GetKoeVersion() !== false) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("KOE: %s / %s / %s", $this->device->GetKoeVersion(), $this->device->GetKoeBuild(), strftime("%Y-%m-%d %H:%M", $this->device->GetKoeBuildDate())));
ZLog::Write(LOGLEVEL_DEBUG, sprintf("KOE Capabilities: %s ", count($this->device->GetKoeCapabilities()) ? implode(',', $this->device->GetKoeCapabilities()) : 'unknown'));
}
}
......@@ -791,8 +792,7 @@ class DeviceManager {
* @return boolean
*/
public function IsKoeSupportingSecondaryContacts() {
// TODO: ZP-1124 still needs to check if KOE version this feature
return defined('KOE_CAPABILITY_SECONDARYCONTACTS') && KOE_CAPABILITY_SECONDARYCONTACTS && $this->IsKoe(); // && $this->HasKoeFeature('secondarycontacts');
return defined('KOE_CAPABILITY_SECONDARYCONTACTS') && KOE_CAPABILITY_SECONDARYCONTACTS && $this->IsKoe() && $this->HasKoeFeature('secondarycontacts');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment