[ROUTES] Fixed attachment routes, broken by channges in fa378462f4
This commit is contained in:
parent
5c0a3102ff
commit
e392160435
@ -227,8 +227,8 @@ class Router
|
|||||||
'/view' => 'attachment_view',
|
'/view' => 'attachment_view',
|
||||||
'/download' => 'attachment_download',
|
'/download' => 'attachment_download',
|
||||||
'/thumbnail' => 'attachment_thumbnail'] as $postfix => $action) {
|
'/thumbnail' => 'attachment_thumbnail'] as $postfix => $action) {
|
||||||
foreach (['attachment' => '[0-9]+',
|
foreach (['filehash' => '[A-Za-z0-9._-]{64}',
|
||||||
'filehash' => '[A-Za-z0-9._-]+'] as $type => $match) {
|
'attachment' => '[0-9]+'] as $type => $match) {
|
||||||
$m->connect("attachment/:{$type}{$postfix}",
|
$m->connect("attachment/:{$type}{$postfix}",
|
||||||
['action' => $action],
|
['action' => $action],
|
||||||
[$type => $match]);
|
[$type => $match]);
|
||||||
|
Loading…
Reference in New Issue
Block a user