diff --git a/app/phrases/resources/classes/phrases.php b/app/phrases/resources/classes/phrases.php index a67bb78f4c..9e7286c13c 100644 --- a/app/phrases/resources/classes/phrases.php +++ b/app/phrases/resources/classes/phrases.php @@ -89,7 +89,7 @@ if (!class_exists('phrases')) { if (is_array($records) && @sizeof($records) != 0) { //filter out unchecked phrases, build where clause for below - foreach($records as $record) { + foreach ($records as $record) { if ($record['checked'] == 'true' && is_uuid($record['uuid'])) { $uuids[] = "'".$record['uuid']."'"; } @@ -140,6 +140,9 @@ if (!class_exists('phrases')) { //revoke temporary permissions $p->delete('phrase_details_delete', 'temp'); + //save the xml + save_phrases_xml(); + //clear the cache $phrase_languages = array_unique($phrase_languages); $cache = new cache; @@ -216,6 +219,9 @@ if (!class_exists('phrases')) { $database->save($array); unset($array); + //save the xml + save_phrases_xml(); + //clear the cache $phrase_languages = array_unique($phrase_languages); $cache = new cache; @@ -328,6 +334,9 @@ if (!class_exists('phrases')) { //revoke temporary permissions $p->delete('phrase_detail_add', 'temp'); + //save the xml + save_phrases_xml(); + //clear the cache $phrase_languages = array_unique($phrase_languages); $cache = new cache;