Phrases: Remove phrase from memcache if phrase detail deleted (no, really).

This commit is contained in:
Nate Jones
2015-04-28 19:28:16 +00:00
parent 3a77c5dfe2
commit 65d8359590
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ else {
//get values
$phrase_detail_uuid = check_str($_GET["pdid"]);
$phrase_uuid = check_str($_GET["pid"]);
$phrase_language = check_str($_GET["lang"]);
//delete the detail entry
if ($phrase_detail_uuid != '' && $phrase_uuid != '') {

View File

@@ -477,7 +477,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " <td class='vtable'>".$phrase_detail_data."&nbsp;</td>\n";
echo " <td class='vtable' style='text-align: center;'>".$field['phrase_detail_order']."&nbsp;</td>\n";
echo " <td class='list_control_icons' style='text-align: left;'>";
echo "<a href='phrase_detail_delete.php?pdid=".$field['phrase_detail_uuid']."&pid=".$phrase_uuid."&a=delete' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">".$v_link_label_delete."</a>";
echo "<a href='phrase_detail_delete.php?pdid=".$field['phrase_detail_uuid']."&pid=".$phrase_uuid."&a=delete&lang=".$phrase_language."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">".$v_link_label_delete."</a>";
echo " </td>\n";
echo "</tr>\n";
}