From 42d890455ae7b6a61a566d174f9980b8faee782f Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:04:16 +0000 Subject: Replaced $_SESSION['id'] and $_SESSION['guid'] with get_loggedin_userid() git-svn-id: http://code.elgg.org/elgg/trunk@7143 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/file/search.php') diff --git a/mod/file/search.php b/mod/file/search.php index 9279129a8..221e34079 100644 --- a/mod/file/search.php +++ b/mod/file/search.php @@ -53,7 +53,7 @@ if (is_array($owner_guid)) { //$area2 = elgg_view_title(elgg_echo("file:friends:type:" . $tag)); $area2 = elgg_view('page_elements/content_header', array('context' => "friends", 'type' => 'file')); - } else if (elgg_get_page_owner_guid() && elgg_get_page_owner_guid() != $_SESSION['guid']) { + } else if (elgg_get_page_owner_guid() && elgg_get_page_owner_guid() != get_loggedin_userid()) { //$area2 = elgg_view_title(sprintf(elgg_echo("file:user:type:" . $tag),elgg_get_page_owner()->name)); $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'file')); } else{ -- cgit v1.2.3