tw: rename updateGeoData

pull/395/head
Varun Patil 2023-02-06 07:38:30 -08:00
parent 6c9d2d12c5
commit df359bc099
1 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ class TimelineWrite
$lon = $exif['GPSLongitude']; $lon = $exif['GPSLongitude'];
try { try {
$this->updateGeoData($file, (float) $lat, (float) $lon); $this->updatePlacesData($file, (float) $lat, (float) $lon);
} catch (\Exception $e) { } catch (\Exception $e) {
$logger = \OC::$server->get(LoggerInterface::class); $logger = \OC::$server->get(LoggerInterface::class);
$logger->log(3, 'Error updating geo data: '.$e->getMessage(), ['app' => 'memories']); $logger->log(3, 'Error updating geo data: '.$e->getMessage(), ['app' => 'memories']);
@ -284,9 +284,9 @@ class TimelineWrite
} }
/** /**
* Add geolocation data for a file. * Add places data for a file.
*/ */
public function updateGeoData(File &$file, float $lat, float $lon): void public function updatePlacesData(File &$file, float $lat, float $lon): void
{ {
// Get GIS type // Get GIS type
$gisType = \OCA\Memories\Util::placesGISType(); $gisType = \OCA\Memories\Util::placesGISType();