Commit 989672fa authored by Mike Sheldon's avatar Mike Sheldon

Remove link to stats page for remote users

parent 8857c999
......@@ -36,6 +36,7 @@ class User {
public $name, $email, $fullname, $bio, $location, $homepage, $error, $userlevel;
public $id, $acctid, $avatar_uri, $location_uri, $webid_uri, $laconica_profile, $journal_rss;
public $password, $has_identica, $created, $modified, $uniqueid, $anticommercial, $receive_emails;
public $remote = false;
/**
* User constructor
......
......@@ -22,11 +22,15 @@ function user_menu($user, $active_page) {
global $this_user;
$submenu = array(
array('name' => _('Overview'), 'url' => $user->getURL()),
array('name' => _('Stats'), 'url' => $user->getURL('stats')),
// array('name' => _('Library'), 'url' => $user->getURL('library')),
array('name' => _('Recent Tracks'), 'url' => $user->getURL('recent-tracks'))
array('name' => _('Overview'), 'url' => $user->getURL())
);
if(!$user->remote) {
$submenu[] = array('name' => _('Stats'), 'url' => $user->getURL('stats'));
}
$submenu[] = array('name' => _('Recent Tracks'), 'url' => $user->getURL('recent-tracks'));
if ($user->hasLoved()) {
$submenu[] = array('name' => _('Radio Stations'), 'url' => $user->getURL('station'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment