bugs fix git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@389 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2012-04-02 13:56:46 +00:00
commit e1d119607b
6 changed files with 8 additions and 8 deletions

View file

@ -52,8 +52,8 @@ $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'] = 'R388';
$bb_cfg['tp_release_date'] = '19-03-2012';
$bb_cfg['tp_release_state'] = 'R389';
$bb_cfg['tp_release_date'] = '2-04-2012';
// Database
$charset = 'utf8';

View file

@ -164,7 +164,7 @@ class report_post extends report_module
function subject_url($report_subject, $non_html_amp = false)
{
$report_subject = (int) $report_subject;
return 'viewtopic.php?'. POST_POST_URL .'='. $report_subject .'#'. $report_subject . $non_html_amp;
return 'viewtopic.php?'. POST_POST_URL .'='. $report_subject .'#'. $report_subject;
}
//

View file

@ -163,7 +163,7 @@ class report_privmsg extends report_module
function subject_url($report_subject, $non_html_amp = false)
{
$sep = ($non_html_amp) ? '&' : '&';
return 'privmsg.php?mode=read'.$sep . POST_POST_URL . '=' . (int) $report_subject . $non_html_amp;
return 'privmsg.php?mode=read'.$sep . POST_POST_URL . '=' . (int) $report_subject;
}
//

View file

@ -163,7 +163,7 @@ class report_topic extends report_module
//
function subject_url($report_subject, $non_html_amp = false)
{
return 'viewtopic.php?'. POST_TOPIC_URL .'='. (int) $report_subject . $non_html_amp;
return 'viewtopic.php?'. POST_TOPIC_URL .'='. (int) $report_subject;
}
//

View file

@ -21,7 +21,7 @@ class report_user extends report_module
function subject_url($id, $non_html_amp = false)
{
$sep = ($non_html_amp) ? '&' : '&';
return 'profile.php?mode=viewprofile'. $sep. POST_USERS_URL .'=' . (int) $id . $non_html_amp;
return 'profile.php?mode=viewprofile'. $sep. POST_USERS_URL .'=' . (int) $id;
}
//

View file

@ -548,7 +548,7 @@ foreach ($profile_fields as $field => $can_edit)
case 'user_avatar_type':
if(isset($_POST['avatargallery']) && !$errors)
{
$avatar_category = (!empty($_POST['avatarcategory'])) ? htmlspecialchars($_POST['avatarcategory']) : '';
$category = (!empty($_POST['avatarcategory'])) ? htmlspecialchars($_POST['avatarcategory']) : '';
$dir = @opendir($bb_cfg['avatar_gallery_path']);
@ -630,7 +630,7 @@ foreach ($profile_fields as $field => $can_edit)
'S_HIDDEN_FIELDS' => $s_hidden_vars)
);
$template->set_filenames(array('body' => 'usercp_avatar_gallery.tpl'));
print_page('usercp_avatar_gallery.tpl');
}
$user_avatar_local = (isset($_POST['avatarselect']) && !empty($_POST['submitavatar']) && $bb_cfg['allow_avatar_local']) ? htmlspecialchars($_POST['avatarselect']) : ((isset($_POST['avatarlocal'])) ? htmlspecialchars($_POST['avatarlocal']) : '');