Skip to content
Snippets Groups Projects
Commit f5eef6ad authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #266 from colemanw/CRM-12229

Flush cache after updating word replacements CRM-12229
parents 7f9683f3 627668e8
Branches
Tags
No related merge requests found
......@@ -256,8 +256,10 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
$wordReplacementSettings = CRM_Core_BAO_Domain::edit($params, $id);
if ($wordReplacementSettings) {
//reset navigation
// Reset navigation
CRM_Core_BAO_Navigation::resetNavigation();
// Clear js string cache
CRM_Core_Resources::singleton()->flushStrings();
CRM_Core_Session::setStatus("", ts("Settings Saved"), "success");
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/options/wordreplacements',
......
......@@ -477,6 +477,13 @@ class CRM_Core_Resources {
return $this;
}
/**
* Flushes cached translated strings
*/
public function flushStrings() {
$this->cache->flush();
}
/**
* Translate strings in a javascript file
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment