This commit has been accessed 595 times via Git panel.
commit 3d0ffd758f2b1b53e1bb85ccf8e006c3372a87dd
tree b70d36468ef80f3e35f8490aa5e20686fa847d42
parent 699a04a0260a4b53d68b2022dddc012f35d9c9e7
author Engels Antonio <engels@majcms.org> 1332181874 +0800
committer Engels Antonio <engels@majcms.org> 1332181874 +0800
Change delete to undelete for Trash folder messages
diff --git a/read.php b/read.php
index f49efa8..bf4ec65 100644
--- a/read.php
+++ b/read.php
@@ -257,7 +257,13 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "</tr><tr>";
- echo "<td class=\"label\">delete</td>";
+ if ($folder == "Trash") {
+ echo "<td class=\"label\">undelete</td>";
+ }
+ else {
+ echo "<td class=\"label\">delete</td>";
+ }
+
echo "<td></td>";
echo "<td class=\"label\">unread</td>";
echo "<td width=\"5\"></td>";
tree b70d36468ef80f3e35f8490aa5e20686fa847d42
parent 699a04a0260a4b53d68b2022dddc012f35d9c9e7
author Engels Antonio <engels@majcms.org> 1332181874 +0800
committer Engels Antonio <engels@majcms.org> 1332181874 +0800
Change delete to undelete for Trash folder messages
diff --git a/read.php b/read.php
index f49efa8..bf4ec65 100644
--- a/read.php
+++ b/read.php
@@ -257,7 +257,13 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
echo "</tr><tr>";
- echo "<td class=\"label\">delete</td>";
+ if ($folder == "Trash") {
+ echo "<td class=\"label\">undelete</td>";
+ }
+ else {
+ echo "<td class=\"label\">delete</td>";
+ }
+
echo "<td></td>";
echo "<td class=\"label\">unread</td>";
echo "<td width=\"5\"></td>";