Fix warning
This commit is contained in:
parent
7e68f9e013
commit
ccc1d4d1fa
@ -979,6 +979,7 @@ function pdf_pagefoot(&$pdf, $outputlangs, $paramfreetext, $fromcompany, $marge_
|
|||||||
|
|
||||||
$outputlangs->load("dict");
|
$outputlangs->load("dict");
|
||||||
$line = '';
|
$line = '';
|
||||||
|
$reg = aray();
|
||||||
|
|
||||||
$dims = $pdf->getPageDimensions();
|
$dims = $pdf->getPageDimensions();
|
||||||
|
|
||||||
@ -1273,6 +1274,7 @@ function pdf_writelinedesc(&$pdf, $object, $i, $outputlangs, $w, $h, $posx, $pos
|
|||||||
|
|
||||||
// Fix bug of some HTML editors that replace links <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png" into <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png"
|
// Fix bug of some HTML editors that replace links <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png" into <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png"
|
||||||
// We make the reverse, so PDF generation has the real URL.
|
// We make the reverse, so PDF generation has the real URL.
|
||||||
|
$nbrep = 0;
|
||||||
$labelproductservice = preg_replace('/(<img[^>]*src=")([^"]*)(&)([^"]*")/', '\1\2&\4', $labelproductservice, -1, $nbrep);
|
$labelproductservice = preg_replace('/(<img[^>]*src=")([^"]*)(&)([^"]*")/', '\1\2&\4', $labelproductservice, -1, $nbrep);
|
||||||
|
|
||||||
//var_dump($labelproductservice);exit;
|
//var_dump($labelproductservice);exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user