Phrases: Remove unused code (#5335)
* Remove unncessery code * remove unnecessary code * Update phrases.php
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user