Phrases: Remove unused code (#5335)

* Remove unncessery code

* remove unnecessary code

* Update phrases.php
This commit is contained in:
agree
2020-07-06 18:21:56 -06:00
committed by GitHub
parent 2df30633be
commit 71854ba40e
3 changed files with 1 additions and 109 deletions
+1 -13
View File
@@ -145,9 +145,6 @@ if (!class_exists('phrases')) {
//revoke temporary permissions
$p->delete('phrase_detail_delete', 'temp');
//save the xml
save_phrases_xml();
//clear the cache
$phrase_languages = array_unique($phrase_languages);
$cache = new cache;
@@ -225,9 +222,6 @@ if (!class_exists('phrases')) {
//revoke temporary permissions
$p->delete('phrase_detail_delete', 'temp');
//save the xml
save_phrases_xml();
//clear the cache
if ($phrase_language != '') {
$cache = new cache;
@@ -301,9 +295,6 @@ 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;
@@ -416,9 +407,6 @@ 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;
@@ -439,4 +427,4 @@ if (!class_exists('phrases')) {
} //class
}
?>
?>