Skip to content

Commit

Permalink
refs #12 fix default param value on non-terminal-position param
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Feb 2, 2023
1 parent 30f508e commit 7fc121f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions lib/Service/ProcessService.php
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit 7fc121f

Please sign in to comment.