projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add upgrade script for creating the new mail routing tables
[platal.git]
/
plugins
/
function.display_phones.php
diff --git
a/plugins/function.display_phones.php
b/plugins/function.display_phones.php
index
8e4a493
..
39728ed
100644
(file)
--- a/
plugins/function.display_phones.php
+++ b/
plugins/function.display_phones.php
@@
-25,19
+25,7
@@
function smarty_function_display_phones($param, &$smarty)
if (count($param['tels'])) {
foreach ($param['tels'] as $tel) {
$tel_type = ($param['dcd'] ? 'Dernier ' : '');
if (count($param['tels'])) {
foreach ($param['tels'] as $tel) {
$tel_type = ($param['dcd'] ? 'Dernier ' : '');
- switch ($tel->type) {
- case Phone::TYPE_FIXED:
- $tel_type .= 'Tél';
- break;
- case Phone::TYPE_FAX:
- $tel_type .= 'Fax';
- break;
- case Phone::TYPE_MOBILE:
- $tel_type .= 'Mob';
- break;
- default:
- $tel_type .= $tel->type;
- }
+ $tel_type .= $tel->displayType(true);
$txthtml .= "<div>\n<em>" . $tel_type . " : </em>\n<strong>" . $tel->display . "</strong>\n";
$comment = "";
if ($tel->comment != "") {
$txthtml .= "<div>\n<em>" . $tel_type . " : </em>\n<strong>" . $tel->display . "</strong>\n";
$comment = "";
if ($tel->comment != "") {