aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-21 22:11:02 -0700
committerfriendica <info@friendica.com>2012-10-21 22:11:02 -0700
commit8f9ddcb536ae46f1c6b3d3c19db1598dc4a51616 (patch)
tree1941b7e5879c9d1e54cc45529f92e9b0a8a7a0c3 /include
parent87c171030c8de2e36f284fa6b58f11a5535a9a29 (diff)
downloadvolse-hubzilla-8f9ddcb536ae46f1c6b3d3c19db1598dc4a51616.tar.gz
volse-hubzilla-8f9ddcb536ae46f1c6b3d3c19db1598dc4a51616.tar.bz2
volse-hubzilla-8f9ddcb536ae46f1c6b3d3c19db1598dc4a51616.zip
lotsa little fixes
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php6
-rw-r--r--include/nav.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 9a6d6a973..6b565f27c 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -353,9 +353,9 @@ function contact_photo_menu($contact) {
function random_profile() {
- $r = q("select url from gcontact where url like '%%://%%/profile/%%' order by rand() limit 1");
- if(count($r))
- return dirname($r[0]['url']);
+ $r = q("select xchan_profile from xchan where xchan_network = 'zot' order by rand() limit 1");
+ if($r && count($r))
+ return $r[0]['xchan_profile'];
return '';
}
diff --git a/include/nav.php b/include/nav.php
index 85af378ff..5c6c7cd14 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -90,7 +90,7 @@ function nav(&$a) {
if(! get_config('system','hide_help'))
$nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'));
- if(count($a->apps)>0)
+ if(count($a->get_apps()) > 0)
$nav['apps'] = array('apps', t('Apps'), "", t('Addon applications, utilities, games'));
$nav['search'] = array('search', t('Search'), "", t('Search site content'));
@@ -170,7 +170,7 @@ function nav(&$a) {
'$emptynotifications' => t('Nothing new here'),
'$userinfo' => $userinfo,
'$sel' => $a->nav_sel,
- '$apps' => $a->apps,
+ '$apps' => $a->get_apps(),
));
call_hooks('page_header', $a->page['nav']);