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