From 047c9352a2273084ce93e2a4e37f56fe5b828ef3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 19 Jul 2016 12:14:15 +0200 Subject: [PATCH] Fix missing localization of HTML editor when assets_dir != INSTALL_PATH --- plugins/kolab_notes/kolab_notes_ui.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_notes/kolab_notes_ui.php b/plugins/kolab_notes/kolab_notes_ui.php index 99cce46a..f180f50a 100644 --- a/plugins/kolab_notes/kolab_notes_ui.php +++ b/plugins/kolab_notes/kolab_notes_ui.php @@ -79,13 +79,14 @@ class kolab_notes_ui } $lang_codes = array($_SESSION['language']); + $assets_dir = $this->rc->config->get('assets_dir') ?: INSTALL_PATH; if ($pos = strpos($_SESSION['language'], '_')) { $lang_codes[] = substr($_SESSION['language'], 0, $pos); } foreach ($lang_codes as $code) { - if (file_exists(INSTALL_PATH . "program/js/tinymce/langs/$code.js")) { + if (file_exists("$assets_dir/program/js/tinymce/langs/$code.js")) { $lang = $code; break; }