aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-04-10 17:04:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-04-10 17:04:20 +0000
commitf2420d68c38b63cee268ca0ca914320fc58b1bac (patch)
tree7f79b44ccc68f6437b7d78fef4c7bd28a2dfe6bf /mod/thewire
parent82310f7f5c747879bcd1ac8d9fe4fc4c97711c6b (diff)
downloadelgg-f2420d68c38b63cee268ca0ca914320fc58b1bac.tar.gz
elgg-f2420d68c38b63cee268ca0ca914320fc58b1bac.tar.bz2
Moving the wire to use $SESSION instead of $_SESSION
git-svn-id: https://code.elgg.org/elgg/trunk@3205 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire')
-rw-r--r--mod/thewire/start.php5
1 files changed, 4 insertions, 1 deletions
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;