$file = $this->getStoreName();
if(!file_exists($file)){
- return '';
+ return false;
}
- $type = pathinfo($path, PATHINFO_EXTENSION);
+ $type = pathinfo($file, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
}