aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Channel.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-04-05 10:52:39 +0200
committerGitHub <noreply@github.com>2018-04-05 10:52:39 +0200
commita7ff2cc5ea11afd7b832bef24866abfb0220d022 (patch)
treee7dcd63bbfdaa6ae564c60d59ef60edf0e6ba7a7 /Zotlabs/Module/Settings/Channel.php
parent20ac91703d54679d2e5080ba2d4985e93986a515 (diff)
parentdcacdd23c87061dc15bd12ed2e959bcbe020c5df (diff)
downloadvolse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.tar.gz
volse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.tar.bz2
volse-hubzilla-a7ff2cc5ea11afd7b832bef24866abfb0220d022.zip
Merge pull request #3 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Settings/Channel.php')
-rw-r--r--Zotlabs/Module/Settings/Channel.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php
index 139e5f966..a7dfdd790 100644
--- a/Zotlabs/Module/Settings/Channel.php
+++ b/Zotlabs/Module/Settings/Channel.php
@@ -412,12 +412,16 @@ class Channel {
));
$subdir = ((strlen(\App::get_path())) ? '<br />' . t('or') . ' ' . z_root() . '/channel/' . $nickname : '');
+
+ $webbie = $nickname . '@' . \App::get_hostname();
+ $intl_nickname = unpunify($nickname) . '@' . unpunify(\App::get_hostname());
+
$tpl_addr = get_markup_template("settings_nick_set.tpl");
$prof_addr = replace_macros($tpl_addr,array(
'$desc' => t('Your channel address is'),
- '$nickname' => $nickname,
+ '$nickname' => (($intl_nickname === $webbie) ? $webbie : $intl_nickname . '&nbsp;(' . $webbie . ')'),
'$subdir' => $subdir,
'$davdesc' => t('Your files/photos are accessible via WebDAV at'),
'$davpath' => ((get_account_techlevel() > 3) ? z_root() . '/dav/' . $nickname : ''),