projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2205c37
)
Show the profile in the network view when viewing single contacts
author
Michael Vogel
<icarus@dabo.de>
Thu, 29 Oct 2015 07:10:39 +0000
(08:10 +0100)
committer
Michael Vogel
<icarus@dabo.de>
Thu, 29 Oct 2015 07:10:39 +0000
(08:10 +0100)
mod/network.php
patch
|
blob
|
history
diff --git
a/mod/network.php
b/mod/network.php
index 639d868fa2a720bdb2ee35c3af307504bf50c48f..66beface0872a383f095003ad443a0e5d6d8c3c1 100644
(file)
--- a/
mod/network.php
+++ b/
mod/network.php
@@
-150,6
+150,14
@@
function network_init(&$a) {
$a->page['aside'] .= saved_searches($search);
$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) {