X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.display_phones.php;h=39728ed96935afe95e90560b80ff1dd8d73f52f4;hb=c67b874fd8d442bfded35295a819e7ce11a2d6dc;hp=db21384bf32a8677a9b98ad2c7e8b898939b3298;hpb=acc9be56f2cc773f7e684f9cd3201141bc126ee2;p=platal.git diff --git a/plugins/function.display_phones.php b/plugins/function.display_phones.php index db21384..39728ed 100644 --- a/plugins/function.display_phones.php +++ b/plugins/function.display_phones.php @@ -1,6 +1,6 @@ \n" . $tel_type . " : \n" . $tel['tel'] . "\n"; + $tel_type = ($param['dcd'] ? 'Dernier ' : ''); + $tel_type .= $tel->displayType(true); + $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 .= "