[CORE][UI][ROUTER] Added view action, which inlines images and videos but downloads everything else. Fixed File url to get an URL fromthe view action, so when a making a remote notice, the correct URL is used, not accessing directly to the file

This commit is contained in:
Miguel Dantas
2019-06-26 01:54:55 +01:00
committed by Diogo Cordeiro
parent 3c9a07677e
commit c7475d78b4
5 changed files with 64 additions and 3 deletions

View File

@@ -223,6 +223,10 @@ class Router
array('action' => 'attachment'),
array('attachment' => '[0-9]+'));
$m->connect('attachment/:attachment/view',
array('action' => 'attachment_view'),
array('attachment' => '[0-9]+'));
$m->connect('attachment/:attachment/download',
array('action' => 'attachment_download'),
array('attachment' => '[0-9]+'));