Correction detection HTML

This commit is contained in:
Michael RICOIS 2012-03-09 15:46:27 +00:00
parent 6ebdf5460b
commit 50e34ac9e2

View File

@ -163,14 +163,14 @@ function infogreffeKbis($ref)
$output = removeTag('script', $output, true, true); $output = removeTag('script', $output, true, true);
preg_replace( preg_replace(
'/\<link href="\/infogreffe\/styles\/infogreffe_base\.css" type="text\/css" rel="stylesheet">/', '/\<link rel="stylesheet" type="text\/css" href="\/infogreffe\/styles\/infogreffe_base.css">/',
'<link href="./styles/infogreffe_base.css" type="text/css" rel="stylesheet">', '<link href="../styles/infogreffe_base.css" type="text/css" rel="stylesheet">',
$output $output
); );
preg_replace( preg_replace(
'/\<link href="\/infogreffe\/styles\/infogreffe\.css" type="text\/css" rel="stylesheet">/', '/\<link rel="stylesheet" type="text\/css" href="\/infogreffe\/styles\/infogreffe.css">/',
'<link href="./styles/infogreffe.css" type="text/css" rel="stylesheet"><link href="./styles/style.css" type="text/css" rel="stylesheet">', '<link href="../styles/infogreffe.css" type="text/css" rel="stylesheet"><link href="../styles/style.css" type="text/css" rel="stylesheet">',
$output $output
); );