Modification chemin html

This commit is contained in:
Michael RICOIS 2010-04-15 14:24:35 +00:00
parent 252fd205a0
commit cfc8c42beb

View File

@ -38,7 +38,7 @@ function commentaires_image($content){
function commentaires_lien($content){
$path = array(
'pdf' => '/datafile.php?q=commentaires',
'html' => '/rouerelance',
'html' => '',
);
$pattern = "/<lien='(.*?).(pdf|html|htm)'>(.*?)<\/lien>/i";
preg_match($pattern, $content, $matches);
@ -56,7 +56,7 @@ function commentaires_lien($content){
case 'html':
$content = str_replace(
$matches[0],
"<a href='".$path['html']."/".$matches[1].".".
"<a href='".$path['html'].$matches[1].".".
$matches[2]."' target='_blank'>".
$matches[3]."</a>",
$content);