index: use realpath for test file
parent
2537239af2
commit
e5cc14bad0
|
@ -210,8 +210,9 @@ class Index extends Command
|
|||
/** Make sure exiftool is available */
|
||||
private function testExif()
|
||||
{
|
||||
$testfile = __DIR__.'/../../exiftest.jpg';
|
||||
if (!file_exists($testfile)) {
|
||||
$testfilepath = __DIR__.'/../../exiftest.jpg';
|
||||
$testfile = realpath($testfilepath);
|
||||
if (!$testfile) {
|
||||
error_log("Couldn't find Exif test file {$testfile}");
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue