Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
f5eef6ad
Commit
f5eef6ad
authored
12 years ago
by
Tim Otten
Browse files
Options
Downloads
Plain Diff
Merge pull request #266 from colemanw/CRM-12229
Flush cache after updating word replacements CRM-12229
parents
7f9683f3
627668e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Admin/Form/WordReplacements.php
+3
-1
3 additions, 1 deletion
CRM/Admin/Form/WordReplacements.php
CRM/Core/Resources.php
+7
-0
7 additions, 0 deletions
CRM/Core/Resources.php
with
10 additions
and
1 deletion
CRM/Admin/Form/WordReplacements.php
+
3
−
1
View file @
f5eef6ad
...
...
@@ -256,8 +256,10 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
$wordReplacementSettings
=
CRM_Core_BAO_Domain
::
edit
(
$params
,
$id
);
if
(
$wordReplacementSettings
)
{
//
r
eset navigation
//
R
eset 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'
,
...
...
This diff is collapsed.
Click to expand it.
CRM/Core/Resources.php
+
7
−
0
View file @
f5eef6ad
...
...
@@ -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
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment