Skip to content

Commit

Permalink
Merge pull request #59 from araise-dev/feature/fix-profile-picture-typo
Browse files Browse the repository at this point in the history
Fix profile picture function name typo
  • Loading branch information
tuxes3 authored Jun 10, 2024
2 parents 621c025 + abc100d commit b55f7b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/views/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{% block sidebar_profile %}
{{ profile({
name: username|default('Default')|capitalize,
picture_src: wwd_crud_generate_intiail_avatar(),
picture_src: wwd_crud_generate_initial_avatar(),
logout_link: path('app_logout')
}) }}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/CrudExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getFunctions(): array
new TwigFunction('wwd_crud_render_breadcrumbs', [$this, 'renderBreadcrumbs'], [
'is_safe' => ['html'],
]),
new TwigFunction('wwd_crud_generate_intiail_avatar', [$this, 'generateInitialAvatar']),
new TwigFunction('wwd_crud_generate_initial_avatar', [$this, 'generateInitialAvatar']),
new TwigFunction('wwd_crud_entity_path', fn ($entityOrClass, PageInterface $page) => $this->getEntityPath($entityOrClass, $page)),
];
}
Expand Down

0 comments on commit b55f7b8

Please sign in to comment.