diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-06-25 13:51:29 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-06-25 13:51:29 -0700 |
commit | 03d31911e18f8ca0ba2f8425943b4c244114a066 (patch) | |
tree | d5628c9648bbe5e457305dc53779b1cb20e76ff1 /actions/newnotice.php | |
parent | 6262fdbe78330894f5f9d90b778acf5cff8032d1 (diff) |
FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 5 |
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))); } /** |