Minor - add error log.

pull/2487/head
jmontoyaa 9 years ago
parent f82704dd69
commit cbc1d83cb1
  1. 2
      app/Migrations/Schema/V110/Version20151214170800.php

@ -42,6 +42,8 @@ class Version20151214170800 extends AbstractMigrationChamilo
$imagePath = __DIR__ . "/../../../../courses/{$answer['directory']}/document/images/{$answer['picture']}";
if (!file_exists($imagePath)) {
error_log("Migration: Image does not exists: $imagePath");
$imagePath = realpath($imagePath);
error_log("Hotspot realpath: $imagePath");
continue;
}
$imageSize = getimagesize($imagePath);

Loading…
Cancel
Save