summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-25 13:51:29 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-25 13:51:29 -0700
commit03d31911e18f8ca0ba2f8425943b4c244114a066 (patch)
treed5628c9648bbe5e457305dc53779b1cb20e76ff1 /actions
parent6262fdbe78330894f5f9d90b778acf5cff8032d1 (diff)
FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 3677f54c2..15caff6ea 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -326,6 +326,8 @@ class NewnoticeAction extends Action
}
$this->maybeAddRedir($file_id, $short);
+
+ return $file;
}
function maybeAddRedir($file_id, $url)
@@ -350,7 +352,8 @@ class NewnoticeAction extends Action
{
File_to_post::processNew($filerec->id, $notice->id);
- $this->maybeAddRedir($filerec->id, common_local_url('file', array('notice' => $this->notice->id)));
+ $this->maybeAddRedir($filerec->id,
+ common_local_url('file', array('notice' => $notice->id)));
}
/**