From f2420d68c38b63cee268ca0ca914320fc58b1bac Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 10 Apr 2009 17:04:20 +0000 Subject: Moving the wire to use $SESSION instead of $_SESSION git-svn-id: https://code.elgg.org/elgg/trunk@3205 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/thewire') diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 8af638ada..4bfc3e675 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -153,6 +153,9 @@ */ function thewire_save_post($post, $access_id, $parent=0, $method = "site") { + + global $SESSION; + // Initialise a new ElggObject $thewire = new ElggObject(); @@ -176,7 +179,7 @@ $save = $thewire->save(); if($save) - add_to_river('river/object/thewire/create','create',$_SESSION['user']->guid,$thewire->guid); + add_to_river('river/object/thewire/create','create',$SESSION['user']->guid,$thewire->guid); return $save; -- cgit v1.2.3