activate.php 564 B

123456789101112131415
  1. <?php
  2. /**
  3. * Prompt the user to install a tinymce language after activating
  4. */
  5. if (elgg_get_config('language') != extended_tinymce_get_site_language()) {
  6. $message = elgg_echo('extended_tinymce:lang_notice', array(
  7. elgg_echo(elgg_get_config('language')),
  8. "https://www.tinymce.com/download/language-packages/",
  9. elgg_get_plugins_path() . "extended_tinymce/vendor/tinymce/js/tinymce/langs",
  10. elgg_add_action_tokens_to_url(elgg_normalize_url('action/admin/site/flush_cache')),
  11. ));
  12. elgg_add_admin_notice('extended_tinymce_admin_notice_no_lang', $message);
  13. }