mirror of
https://github.com/nextcloud/server.git
synced 2026-02-15 16:59:47 -05:00
L10n for federated cloud ID and rtrim '/' on ID
This commit is contained in:
parent
6e5ed81064
commit
70f0cf67a5
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
$uid = \OC::$server->getUserSession()->getUser()->getUID();
|
||||
$server = \OC::$server->getURLGenerator()->getAbsoluteURL('/');
|
||||
$cloudID = $uid . '@' . \OCA\Files_Sharing\Helper::removeProtocolFromUrl($server);
|
||||
$cloudID = $uid . '@' . rtrim(\OCA\Files_Sharing\Helper::removeProtocolFromUrl($server), '/');
|
||||
|
||||
$tmpl = new OCP\Template('files_sharing', 'settings-personal');
|
||||
$tmpl->assign('cloudId', $cloudID);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<h2><?php p($l->t('Federated Cloud'));?></h2>
|
||||
|
||||
<p>
|
||||
Your Federated Cloud Id: <?php p($_['cloudId']); ?>
|
||||
<?php p($l->t('Your Federated Cloud ID: %s', [$_['cloudId']])); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue