diff options
-rw-r--r-- | mod/thewire/start.php | 5 |
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;
|