diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 1e943a422..036c262fb 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -965,7 +965,7 @@ public function getTrackMarkersJson(int $id, string $directoryPath, bool $proces $tracksById[$jsonTrack['id']] = $jsonTrack; } - $picturesArray = $this->processService->getGeoPicsFromFolder($this->userId, $directoryPath, false, $id); + $picturesArray = $this->processService->getGeoPicsFromFolder($this->userId, $directoryPath, $id, false); return new DataResponse([ 'tracks' => $tracksById, diff --git a/lib/Service/ProcessService.php b/lib/Service/ProcessService.php index bc1e73146..809b5278d 100644 --- a/lib/Service/ProcessService.php +++ b/lib/Service/ProcessService.php @@ -792,15 +792,16 @@ private function getElevationGainLoss($points) { * * @param string $userId * @param string $subfolder + * @param int $directoryId * @param bool $recursive * @return array * @throws Exception * @throws InvalidPathException + * @throws NoUserException * @throws NotFoundException * @throws NotPermittedException - * @throws NoUserException */ - public function getGeoPicsFromFolder(string $userId, string $subfolder, bool $recursive = false, int $directoryId): array { + public function getGeoPicsFromFolder(string $userId, string $subfolder, int $directoryId, bool $recursive = false): array { if (!function_exists('exif_read_data')) { return []; }