Add typehints and reduce code duplication

This commit is contained in:
Benoît Burnichon
2016-01-25 16:08:38 +01:00
parent f383ca08a4
commit 005524d572
3 changed files with 16 additions and 2 deletions

View File

@@ -395,7 +395,7 @@ class recordutils_image
return false;
}
$pathIn = $subdef->get_path() . $subdef->get_file();
$pathIn = $subdef->getRealPath();
if (!is_file($pathIn)) {
return false;