Inclusion de la function chunk_split qui est déclarée en dehors de la classe
This commit is contained in:
parent
a586182912
commit
3312af7560
@ -129,7 +129,7 @@ class DolibarrMail
|
|||||||
{
|
{
|
||||||
$fd = fopen($sourcefile, "r");
|
$fd = fopen($sourcefile, "r");
|
||||||
$contents = fread($fd, filesize($sourcefile));
|
$contents = fread($fd, filesize($sourcefile));
|
||||||
$encoded = my_chunk_split(base64_encode($contents));
|
$encoded = $this->my_chunk_split(base64_encode($contents));
|
||||||
fclose($fd);
|
fclose($fd);
|
||||||
}
|
}
|
||||||
return $encoded;
|
return $encoded;
|
||||||
@ -208,7 +208,7 @@ class DolibarrMail
|
|||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief permet de diviser une chaine (RFC2045)
|
\brief permet de diviser une chaine (RFC2045)
|
||||||
@ -245,6 +245,6 @@ function my_chunk_split($str)
|
|||||||
}
|
}
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// end script
|
// end script
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user