Skip to content

Commit c3944ce

Browse files
rubenvdlindeclaude
andcommitted
fix: Use positional args in imagePath() to fix NC version compatibility
Named parameter 'appName:' breaks on Nextcloud versions where the concrete URLGenerator still uses '$app' as the parameter name. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 87b7b78 commit c3944ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Sections/SoftwareCatalogAdmin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function __construct(IL10N $l, IURLGenerator $urlGenerator)
5353
*/
5454
public function getIcon(): string
5555
{
56-
return $this->urlGenerator->imagePath(appName: 'core', file: 'actions/settings-dark.svg');
56+
// phpcs:ignore -- named parameters unsafe for Nextcloud core methods (param names vary by NC version)
57+
return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
5758
}//end getIcon()
5859

5960
/**

0 commit comments

Comments
 (0)