git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@313 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-11-13 02:11:37 +00:00
commit 633fb3b210
3 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ $tor_filelist = build_tor_filelist($file_contents);
function build_tor_filelist ($file_contents) function build_tor_filelist ($file_contents)
{ {
global $lang; global $lang;
if (!$tor = bdecode($file_contents)) if (!$tor = bdecode($file_contents))
{ {
return $lang['TORFILE_INVALID']; return $lang['TORFILE_INVALID'];
@ -127,7 +127,7 @@ class torrent
{ {
if (is_string($cur_files_ary)) if (is_string($cur_files_ary))
{ {
$this->ajax_die($lang['ERROR_BUILD']); bb_die($lang['ERROR_BUILD']);
} }
$cur_files_ary[] = $this->build_file_item($name, $length); $cur_files_ary[] = $this->build_file_item($name, $length);
} }

View file

@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.2 Beta'; $bb_cfg['tp_version'] = '2.2 Beta';
$bb_cfg['tp_release_state'] = 'R312'; $bb_cfg['tp_release_state'] = 'R313';
$bb_cfg['tp_release_date'] = '13-11-2011'; $bb_cfg['tp_release_date'] = '13-11-2011';
// Database // Database

View file

@ -370,9 +370,9 @@ $post_order = (isset($_POST['postorder']) && $_POST['postorder'] !== 'asc') ? 'd
// //
// 1. Add first post of topic if it pinned and page of topic not first // 1. Add first post of topic if it pinned and page of topic not first
$first_post = false; $first_post = false;
if ($t_data['topic_show_first_post'] && ( $start != 0)) if ($t_data['topic_show_first_post'] && $start)
{ {
$first_post = DB()->fetch_rowset(" $first_post = DB()->fetch_row("
SELECT SELECT
u.username, u.user_id, u.user_posts, u.user_from, u.username, u.user_id, u.user_posts, u.user_from,
u.user_regdate, u.user_rank, u.user_sig, u.user_regdate, u.user_rank, u.user_sig,