Modification chemin html
This commit is contained in:
parent
252fd205a0
commit
cfc8c42beb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user