Skip to content

Commit

Permalink
MDL-35318 use new lang revision to invalidate TinyMCE lang caches
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 9, 2012
1 parent a46e11b commit 79df150
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/editor/tinymce/lib.php
Expand Up @@ -129,8 +129,10 @@ protected function get_init_params($elementid, array $options=null) {

$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,
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/tinymce/version.php
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2012090700; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2012090900; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012083100; // Requires this Moodle version
$plugin->component = 'editor_tinymce'; // Full name of the plugin (used for diagnostics)
$plugin->release = '3.6.0'; // This is NOT a directory name, see lib.php if you need to know where is the editor code!

0 comments on commit 79df150

Please sign in to comment.