I just found out that the preview resp. download of files doesn't work in the internal filebrowser ("cmsbrowser") for second languages. The problem is that the files are linked relative to the including index.php instead of the base folder. The fix is rather simple:
Code: Select all
Index: classes/Filebrowser_View.php
===================================================================
--- classes/Filebrowser_View.php (revision 3)
+++ classes/Filebrowser_View.php (working copy)
@@ -421,7 +421,7 @@
. $_XH_csrfProtection->tokenInput()
. '</form>'
. '<a style="position:relative" class="xhfbfile" href="'
- . $this->currentDirectory . $file . '" target="_blank">' . $file;
+ . $this->basePath . $this->currentDirectory . $file . '" target="_blank">' . $file;
$ffn = $base . $fb->currentDirectory . $file;
$usage = array_key_exists($ffn, $imgs)