Phrases: Update class.
This commit is contained in:
parent
d588ea9c6d
commit
b430b14ca7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue