mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-35318 use new lang revision to invalidate TinyMCE lang caches
This commit is contained in:
parent
a46e11b5df
commit
79df150a62
2 changed files with 4 additions and 2 deletions
|
@ -129,8 +129,10 @@ class tinymce_texteditor extends texteditor {
|
|||
|
||||
$fontselectlist = empty($config->fontselectlist) ? '' : $config->fontselectlist;
|
||||
|
||||
// TODO: MDL-35318 somehow implement cache invalidation - we need to get lang revision somehow and sync purging.
|
||||
$langrev = -1;
|
||||
if (!empty($CFG->cachejs)) {
|
||||
$langrev = get_string_manager()->get_revision();
|
||||
}
|
||||
|
||||
$params = array(
|
||||
'moodle_config' => $config,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue