mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-29 18:47:44 +01:00
[BUGFIX] Admin page: Prefix path to download links
The download links in the admin page have no path prefix and therefore all installations with within a subdirectory create no-working links. Prefix the JIRAFEAU_ABSPREFIX to create working URLs. Refs #108
This commit is contained in:
parent
89d002baaa
commit
cd09b476cb
@ -594,7 +594,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash)
|
||||
/* Print link informations. */
|
||||
echo '<tr>';
|
||||
echo '<td>' .
|
||||
'<strong><a id="upload_link" href="/f.php?h='. htmlspecialchars($node) .'" title="' .
|
||||
'<strong><a id="upload_link" href="' . JIRAFEAU_ABSPREFIX . 'f.php?h='. htmlspecialchars($node) .'" title="' .
|
||||
t('Download page') . '">' . htmlspecialchars($l['file_name']) . '</a></strong>';
|
||||
echo '</td>';
|
||||
echo '<td>' . $l['mime_type'] . '</td>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user