Skip to content
Snippets Groups Projects
Commit f750c483 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: bad function

parent 6b6356cc
No related branches found
No related tags found
No related merge requests found
......@@ -593,11 +593,8 @@ class CMailFile
if (is_readable($newsourcefile))
{
//$fd = fopen($newsourcefile, "rb");
//$contents = fread($fd, filesize($newsourcefile));
$contents = file_get_contents($newsourcefile); // Need PHP 4.3
$encoded = chunk_split(base64_encode($contents), 68, $this->eol);
fclose($fd);
return $encoded;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment