Merge pull request #1996 from annando/1510-profile-network-page

Show the profile in the network view when viewing single contacts
This commit is contained in:
Tobias Diekershoff 2015-10-29 08:39:56 +01:00
commit 6f601bf47d

View file

@ -150,6 +150,14 @@ function network_init(&$a) {
$a->page['aside'] .= saved_searches($search); $a->page['aside'] .= saved_searches($search);
$a->page['aside'] .= fileas_widget($a->get_baseurl(true) . '/network',(x($_GET, 'file') ? $_GET['file'] : '')); $a->page['aside'] .= fileas_widget($a->get_baseurl(true) . '/network',(x($_GET, 'file') ? $_GET['file'] : ''));
if(x($_GET['cid']) && intval($_GET['cid']) != 0) {
$r = q("SELECT * FROM `contact` WHERE `id` = %d",
intval($_GET['cid']));
if ($r) {
$a->page['aside'] = "";
profile_load($a, "", 0, $r[0]);
}
}
} }
function saved_searches($search) { function saved_searches($search) {