FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)
This commit is contained in:
parent
6262fdbe78
commit
03d31911e1
|
@ -326,6 +326,8 @@ class NewnoticeAction extends Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->maybeAddRedir($file_id, $short);
|
$this->maybeAddRedir($file_id, $short);
|
||||||
|
|
||||||
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
function maybeAddRedir($file_id, $url)
|
function maybeAddRedir($file_id, $url)
|
||||||
|
@ -350,7 +352,8 @@ class NewnoticeAction extends Action
|
||||||
{
|
{
|
||||||
File_to_post::processNew($filerec->id, $notice->id);
|
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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user