From 86baf270737b0841f93df48e55c4917488bda80e Mon Sep 17 00:00:00 2001 From: Exile Date: Thu, 18 Dec 2014 01:45:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20IN=5FFORUM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Лишние определения констант. --- admin/pagestart.php | 1 - callseed.php | 1 - common.php | 3 +-- dl.php | 1 - dl_list.php | 1 - feed.php | 1 - group.php | 1 - group_edit.php | 1 - index.php | 1 - install/upgrade/r496-user_birthday.php | 1 - install/upgrade/r571-dl_upgrade.php | 1 - install/upgrade/r575-poll_upgrade.php | 1 - install/upgrade/r583-convert_avatars.php | 1 - install/upgrade/r588-short_lang.php | 1 - install/upgrade/r600-stable.php | 1 - library/attach_mod/attachment_mod.php | 2 -- library/attach_mod/displaying.php | 2 -- library/attach_mod/displaying_torrent.php | 2 +- .../attach_mod/includes/functions_thumbs.php | 2 -- library/attach_mod/posting_attachments.php | 2 -- library/includes/ucp/activate.php | 2 +- library/includes/ucp/email.php | 2 +- library/includes/ucp/sendpasswd.php | 2 +- login.php | 1 - memberlist.php | 1 - modcp.php | 1 - posting.php | 1 - privmsg.php | 1 - viewforum.php | 1 - viewtopic.php | 27 ------------------- 30 files changed, 5 insertions(+), 61 deletions(-) diff --git a/admin/pagestart.php b/admin/pagestart.php index 69c2bce79..0a336eaaf 100644 --- a/admin/pagestart.php +++ b/admin/pagestart.php @@ -1,7 +1,6 @@ ' : '<'; - $sql_ordering = ($_GET['view'] == 'next') ? 'ASC' : 'DESC'; - - $sql = "SELECT t.topic_id - FROM ". BB_TOPICS ." t, ". BB_TOPICS ." t2 - WHERE t2.topic_id = $topic_id - AND t.forum_id = t2.forum_id - AND t.topic_moved_id = 0 - AND t.topic_last_post_id $sql_condition t2.topic_last_post_id - ORDER BY t.topic_last_post_id $sql_ordering - LIMIT 1"; - - if ($row = DB()->fetch_row($sql)) - { - $next_topic_id = $topic_id = $row['topic_id']; - } - else - { - $message = ($_GET['view'] == 'next') ? $lang['NO_NEWER_TOPICS'] : $lang['NO_OLDER_TOPICS']; - bb_die($message); - } -} - // Get forum/topic data if ($topic_id) {