From 6606784c3f59eb630fca07e94817ccee38f9ed43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Tue, 1 Jan 2013 15:20:18 +0100 Subject: [PATCH] MDL-37323 add support for _dlg strings in our TinyMCE subplugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Credit goes to Étienne FLORENT, thanks. --- lib/editor/tinymce/all_strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/tinymce/all_strings.php b/lib/editor/tinymce/all_strings.php index 9d711245891..0758f43c6ec 100644 --- a/lib/editor/tinymce/all_strings.php +++ b/lib/editor/tinymce/all_strings.php @@ -72,7 +72,7 @@ foreach (get_plugin_list('tinymce') as $component => $ignored) { $componentstrings = get_string_manager()->load_component_strings( 'tinymce_' . $component, $lang); foreach ($componentstrings as $key => $value) { - if (strpos($key, "$component:") !== 0) { + if (strpos($key, "$component:") !== 0 and strpos($key, $component.'_dlg:') !== 0) { // Ignore normal lang strings. continue; }