aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/manage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 496ae30..e1b2efd 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -904,7 +904,7 @@ def manage(self, path_split):
if path_split[4] == 'delete':
board = setBoard(path_split[5])
- post = FetchOne('SELECT `parentid` FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1')
+ post = FetchOne('SELECT id, parentid, message, INET_NTOA(ip) AS ip FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1')
if not post:
message = _('Unable to locate a post with that ID.')
else:
@@ -915,8 +915,8 @@ def manage(self, path_split):
else:
regenerateFrontPages()
- message = _('Post successfully permadeleted.')
- logAction(staff_account['username'], _('Permadeleted post %s') % ('/' + path_split[5] + '/' + path_split[6]))
+ message = "Eliminado post %s permanentemente." % ('/' + board['dir'] + '/' + post['id'])
+ logAction(staff_account['username'], message + ' Contenido: ' + post['message'] + ' IP: ' + post['ip'])
# Delete more than 1 post
if 'deleteall' in self.formdata.keys():