aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:04:16 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:04:16 +0000
commit42d890455ae7b6a61a566d174f9980b8faee782f (patch)
treef5da4e9c5cb9e2656dbbde06ba35dd9dc4d333d4 /mod/file
parentba5681722bbb3df247cda8eb3f64c7e040e5bf00 (diff)
downloadelgg-42d890455ae7b6a61a566d174f9980b8faee782f.tar.gz
elgg-42d890455ae7b6a61a566d174f9980b8faee782f.tar.bz2
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
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/search.php2
-rw-r--r--mod/file/world.php2
2 files changed, 2 insertions, 2 deletions
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{
diff --git a/mod/file/world.php b/mod/file/world.php
index 2bc24bd66..e35b3c067 100644
--- a/mod/file/world.php
+++ b/mod/file/world.php
@@ -14,7 +14,7 @@
$page_owner = elgg_get_page_owner();
if ($page_owner === false || is_null($page_owner)) {
$page_owner = get_loggedin_user();
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
$title = elgg_echo('file:all');