aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-28 19:44:47 -0800
committerFriendika <info@friendika.com>2011-02-28 19:44:47 -0800
commit80ed4242ee71031f73aa4ef32f17edbf6e989f51 (patch)
treece8c3dd29d1385de3180d43ba35aa2edff2af658 /mod
parentf089b1610e148db0f3952d9fce44974dbecfbc5c (diff)
downloadvolse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.tar.gz
volse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.tar.bz2
volse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.zip
singleuser site mode plus fix search template layout
Diffstat (limited to 'mod')
-rw-r--r--mod/home.php6
-rw-r--r--mod/network.php1
-rw-r--r--mod/search.php1
3 files changed, 6 insertions, 2 deletions
diff --git a/mod/home.php b/mod/home.php
index d45b13ed5..20d38cfca 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -4,9 +4,11 @@ if(! function_exists('home_init')) {
function home_init(&$a) {
if(local_user() && ($a->user['nickname']))
- goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
+ goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
+
+ if(strlen(get_config('system','singleuser')))
+ goaway( $a->get_baseurl() . "/profile/" . get_config('system','singleuser'));
- $a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
}}
diff --git a/mod/network.php b/mod/network.php
index e50723ae7..8ac51cee3 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -245,6 +245,7 @@ function network_content(&$a, $update = 0) {
$o .= replace_macros($tpl,array(
'$id' => $item['item_id'],
+ '$linktitle' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$name' => $profile_name,
'$sparkle' => $sparkle,
diff --git a/mod/search.php b/mod/search.php
index a6a4b613f..561bb6c62 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -113,6 +113,7 @@ function search_content(&$a) {
$o .= replace_macros($tpl,array(
'$id' => $item['item_id'],
+ '$linktitle' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$name' => $profile_name,
'$sparkle' => $sparkle,