Filebrowser: editorbrowser duplicates "Folder" in heading
Posted: Fri Dec 26, 2014 11:36 pm
Hello Community,
I've noticed that the editorbrowser duplicates the term "Folder" in its headings. For instance, there is "Userfiles Folder Folder" or "Userfiles Ordner Ordner". The obvious solution would be the following patch:
However, this should be carefully investigated and double-checked (I wonder why $this->translate('folder') has been introduced in the first place).
Anyway, we should fix this minor bug bug for XH 1.6.5.
Christoph
I've noticed that the editorbrowser duplicates the term "Folder" in its headings. For instance, there is "Userfiles Folder Folder" or "Userfiles Ordner Ordner". The obvious solution would be the following patch:
Code: Select all
Index: plugins/filebrowser/classes/Filebrowser_View.php
===================================================================
--- plugins/filebrowser/classes/Filebrowser_View.php (revision 3)
+++ plugins/filebrowser/classes/Filebrowser_View.php (working copy)
@@ -187,7 +187,7 @@
$title = isset($tx['title']['userfiles'])
? utf8_ucfirst($tx['title']['userfiles'])
- : ucfirst('Userfiles ' . $this->translate('folder'));
+ : ucfirst('Userfiles');
$html = '<ul><li class="openFolder"><a href="?'
. htmlspecialchars($this->linkParams, ENT_QUOTES, 'UTF-8') . '">'
. $title . ' ' . $this->lang['folder'] . '</a>';
Anyway, we should fix this minor bug bug for XH 1.6.5.
Christoph