Correct add_photo_web method
This commit is contained in:
parent
bf51e34382
commit
580817964e
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||||
* Copyright (C) 2007 Jean Heimburger <jean@tiaris.info>
|
* Copyright (C) 2007 Jean Heimburger <jean@tiaris.info>
|
||||||
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2011 Jean Heimburger <jean@tiaris.info>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -2451,14 +2452,14 @@ class Product extends CommonObject
|
|||||||
// \todo A faire
|
// \todo A faire
|
||||||
|
|
||||||
// Cree fichier en taille origine
|
// Cree fichier en taille origine
|
||||||
$content = @file_get_contents(urlencode($file));
|
$content = @file_get_contents($file);
|
||||||
if( $content)
|
if( $content)
|
||||||
{
|
{
|
||||||
$nom = basename($file);
|
$nom = basename($file);
|
||||||
$im = fopen(dol_osencode($dir.$nom),'wb');
|
$im = fopen(dol_osencode($dir.$nom),'wb');
|
||||||
fwrite($im, $content);
|
fwrite($im, $content);
|
||||||
fclose($im);
|
fclose($im);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user