mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14285] Rename argument from file to id
PHPBB3-14285
This commit is contained in:
parent
4abdabe6f4
commit
6232401dd7
3 changed files with 5 additions and 5 deletions
|
@ -4,8 +4,8 @@ phpbb_storage_avatar:
|
|||
_controller: storage.controller.avatar:handle
|
||||
|
||||
phpbb_storage_attachment:
|
||||
path: /download/attachment/{file}
|
||||
path: /download/attachment/{id}
|
||||
defaults:
|
||||
_controller: storage.controller.attachment:handle
|
||||
requirements:
|
||||
file: \d+
|
||||
id: \d+
|
||||
|
|
|
@ -47,7 +47,7 @@ $thumbnail = $request->variable('t', false);
|
|||
|
||||
$response = new RedirectResponse(
|
||||
$controller_helper->route('phpbb_storage_attachment', array(
|
||||
'file' => $attach_id,
|
||||
'id' => $attach_id,
|
||||
'mode' => $mode,
|
||||
't' => $thumbnail,
|
||||
), false),
|
||||
|
|
|
@ -59,9 +59,9 @@ class attachment extends controller
|
|||
$this->user = $user;
|
||||
}
|
||||
|
||||
public function handle($file)
|
||||
public function handle($id)
|
||||
{
|
||||
$attach_id = (int) $file;
|
||||
$attach_id = (int) $id;
|
||||
$mode = $this->request->variable('mode', '');
|
||||
$thumbnail = $this->request->variable('t', false);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue