Skip to content

Commit

Permalink
Comment form bug fixes
Browse files Browse the repository at this point in the history
- Better support of single sign-on
- Added missing translation call
  • Loading branch information
demiankatz committed Jul 15, 2020
1 parent 487f8da commit a2cfa43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/bootstrap3/templates/RecordTab/usercomments.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<input class="btn btn-primary" data-loading-text="<?=$this->transEsc('Submitting') ?>..." type="submit" value="<?=$this->transEsc("Add your comment")?>"/>
</div>
<?php else: ?>
<a href="<?=$this->url('myresearch-userlogin') ?>" class="btn btn-primary" data-lightbox title="Login"><i class="fa fa-sign-in" aria-hidden="true"></i> <?=$this->transEsc("You must be logged in first") ?></a>
<?php $singleSignOn = $this->auth()->getManager()->getSessionInitiator($this->serverUrl(true)); ?>
<a href="<?=$this->url('myresearch-userlogin') ?>" class="btn btn-primary"<?php if (!$singleSignOn): ?> data-lightbox<?php endif; ?> title="<?=$this->transEsc('Login')?>"><i class="fa fa-sign-in" aria-hidden="true"></i> <?=$this->transEsc("You must be logged in first") ?></a>
<?php endif; ?>
</form>

0 comments on commit a2cfa43

Please sign in to comment.