Aastra classes: let 6739i use icons
It is supported in the phone, so don't let the classes forbid it.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
diff --git a/include/AastraIPPhone.php b/include/AastraIPPhone.php
index bf632d2..bff45f4 100644
--- a/include/AastraIPPhone.php
+++ b/include/AastraIPPhone.php
@@ -519,6 +519,7 @@
case 'Aastra55i':
case 'Aastra57i':
case 'Aastra57iCT':
+ case 'Aastra6739i':
case 'Aastra9480i':
case 'Aastra9480iCT':
if(Aastra_test_phone_version('2.0.2.',1,$header)==0) $return=True;
diff --git a/include/TextScreen.class.php b/include/TextScreen.class.php
index 74b212f..d5f12fa 100644
--- a/include/TextScreen.class.php
+++ b/include/TextScreen.class.php
@@ -132,11 +132,17 @@
$icon = $e['icon'];
$o->addEntry($name, $url, $selection, $icon);
}
+ $icons=1;
foreach($this->_softkeys as $k=>$e) {
$label = $e['label'];
$url = $e['url'];
$icon = $e['icon'];
- $o->addSoftKey($k, $label, $url, $icon);
+ if ($icon) {
+ $o->addSoftkey($k, $label, $url, $icons);
+ $o->addIcon($icons++, $icon);
+ } else {
+ $o->addSoftkey($k, $label, $url, NULL);
+ }
}
$o->setTitle($this->_title);
if (count($this->_entries) != 0) {