X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.display_phones.php;h=8e4a4938e98c6fba8e847ac161c7cd82ca5ef4d5;hb=01bb23e6f5ae192ffaa6afbbd94b21b2b37f2138;hp=b676d50375d23856d3260e6b4966b17a3186e79e;hpb=353f2d2b11c4e3c6c0bc3553813368b6f42fa9c6;p=platal.git diff --git a/plugins/function.display_phones.php b/plugins/function.display_phones.php index b676d50..8e4a493 100644 --- a/plugins/function.display_phones.php +++ b/plugins/function.display_phones.php @@ -1,6 +1,6 @@ type) { + case Phone::TYPE_FIXED: $tel_type .= 'Tél'; break; - case 'fax': + case Phone::TYPE_FAX: $tel_type .= 'Fax'; break; - case 'mobile': + case Phone::TYPE_MOBILE: $tel_type .= 'Mob'; break; default: - $tel_type .= $tel['tel_type']; + $tel_type .= $tel->type; } - $txthtml .= "
\n" . $tel_type . " : \n" . $tel['tel'] . "\n"; + $txthtml .= "
\n" . $tel_type . " : \n" . $tel->display . "\n"; $comment = ""; - if ($tel['comment'] != "") { - $commentHtml = str_replace(array('&', '"'), array('&', '"'), $tel['comment']); + if ($tel->comment != "") { + $commentHtml = str_replace(array('&', '"'), array('&', '"'), $tel->comment); $commentJs = str_replace(array('\\', '\''), array('\\\\', '\\\''), $commentHtml); $txthtml .= "