From 832b95009f4b9be2ccdc3c1754a63cbfade91aac Mon Sep 17 00:00:00 2001 From: pherum83 Date: Tue, 31 Jan 2012 18:51:25 +0000 Subject: [PATCH] r344 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@344 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/admin/admin_reports.php | 3 --- upload/config.php | 2 +- upload/includes/functions_torrent.php | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/upload/admin/admin_reports.php b/upload/admin/admin_reports.php index 5d5727d57..dad71176c 100644 --- a/upload/admin/admin_reports.php +++ b/upload/admin/admin_reports.php @@ -9,9 +9,6 @@ if (!empty($setmodules)) return; } -define('IN_PHPBB', true); -define('BB_ROOT', './../'); - require("./pagestart.php"); require(INC_DIR . "functions_report.php"); require(INC_DIR . "functions_report_admin.php"); diff --git a/upload/config.php b/upload/config.php index 422f9ea1e..770579e2c 100644 --- a/upload/config.php +++ b/upload/config.php @@ -63,7 +63,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.4 (beta)'; -$bb_cfg['tp_release_state'] = 'R343'; +$bb_cfg['tp_release_state'] = 'R344'; $bb_cfg['tp_release_date'] = '31-01-2012'; // Database diff --git a/upload/includes/functions_torrent.php b/upload/includes/functions_torrent.php index 4f8cdbf5f..6e29ede12 100644 --- a/upload/includes/functions_torrent.php +++ b/upload/includes/functions_torrent.php @@ -4,6 +4,8 @@ if (!defined('BB_ROOT')) die(basename(__FILE__)); function get_torrent_info ($attach_id) { + global $lang; + $attach_id = intval($attach_id); $sql = "