Skip to content

Commit

Permalink
Fix some missing UserEntityInterface references.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 4, 2024
1 parent f29a508 commit 69ca6be
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/OAuth2/Entity/UserEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct(
}
if ($userIdentifier === null) {
throw new \VuFind\Exception\BadConfig(
"$userIdentifierField empty for user {$user->id}."
"$userIdentifierField empty for user {$user->getId()}."
. ' The configured user identifier field has to be required.'
);
}
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/myresearch/schedulesearch.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<?=$this->component('show-account-menu-button')?>

<div class="<?=$this->layoutClass('mainbody')?>">
<?php if ($user && !empty($user->email)): ?>
<?php if ($user && !empty($user->getEmail())): ?>
<div class="alert alert-info alert-email-notification">
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->email) ?>
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->getEmail()) ?>
<?php if ($this->auth()->getManager()->supportsEmailChange()): ?>
(<a href="<?=$this->url('myresearch-profile');?>"><?=$this->transEsc('edit');?></a>)
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/record/comments-list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<strong><?=null === $comment->getUser()->getId() ? $this->transEsc('comment_anonymous_user') : $this->escapeHtml(trim($comment->getUser()->getFirstName() . ' ' . $comment->getUser()->getLastName()))?></strong><br>
<small>
<?=$this->escapeHtml($comment->getCreated()->format('Y-m-d H:i:s'))?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->id): ?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->getId()): ?>
<a href="<?=$this->escapeHtmlAttr($this->recordLinker()->getActionUrl($this->driver, 'DeleteComment', ['delete' => $comment->getId()]))?>" id="recordComment<?=$this->escapeHtml($comment->getId())?>" class="delete"><?=$this->transEsc('Delete')?></a>
<?php endif; ?>
</small>
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap5/templates/myresearch/schedulesearch.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<?=$this->component('show-account-menu-button')?>

<div class="<?=$this->layoutClass('mainbody')?>">
<?php if ($user && !empty($user->email)): ?>
<?php if ($user && !empty($user->getEmail())): ?>
<div class="alert alert-info alert-email-notification">
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->email) ?>
<?=$this->transEsc('alert_email_address') . ': ' . $this->escapeHtml($user->getEmail()) ?>
<?php if ($this->auth()->getManager()->supportsEmailChange()): ?>
(<a href="<?=$this->url('myresearch-profile');?>"><?=$this->transEsc('edit');?></a>)
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/record/comments-list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<strong><?=null === $comment->getUser()->getId() ? $this->transEsc('comment_anonymous_user') : $this->escapeHtml(trim($comment->getUser()->getFirstName() . ' ' . $comment->getUser()->getLastName()))?></strong><br>
<small>
<?=$this->escapeHtml($comment->getCreated()->format('Y-m-d H:i:s'))?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->id): ?>
<?php if (($user = $this->auth()->getUserObject()) && $comment->getUser()->getId() == $user->getId()): ?>
<a href="<?=$this->escapeHtmlAttr($this->recordLinker()->getActionUrl($this->driver, 'DeleteComment', ['delete' => $comment->getId()]))?>" id="recordComment<?=$this->escapeHtml($comment->getId())?>" class="delete"><?=$this->transEsc('Delete')?></a>
<?php endif; ?>
</small>
Expand Down

0 comments on commit 69ca6be

Please sign in to comment.