diff options
Diffstat (limited to 'cgi/manage.py')
-rw-r--r-- | cgi/manage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/manage.py b/cgi/manage.py index 5def5c5..f30674a 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -176,8 +176,8 @@ def manage(self, path_split): if not board: template_filename = "mod.html" template_values = {"mode": 1, 'boards': boardlist()} - elif self.formdata.get("thread"): - parentid = int(self.formdata["thread"]) + elif len(path_split) > 4: + parentid = int(path_split[4]) posts = FetchAll('SELECT id, timestamp, timestamp_formatted, name, message, file, thumb, IS_DELETED, locked, subject, length, INET6_NTOA(ip) AS ip FROM `posts` WHERE (parentid = %d OR id = %d) AND boardid = %s ORDER BY `id` ASC' % ( parentid, parentid, board['id'])) template_filename = "mod.html" |