FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)

This commit is contained in:
Zach Copley 2009-06-25 13:51:29 -07:00
parent 6262fdbe78
commit 03d31911e1

View File

@ -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)));
}
/**