Phrases: Update class.

This commit is contained in:
Nate 2019-11-30 20:32:44 -07:00
parent d588ea9c6d
commit b430b14ca7
1 changed files with 10 additions and 1 deletions

View File

@ -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;