|
From: Jonathan H. <the...@us...> - 2002-03-25 19:41:01
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv5763
Modified Files:
privmsg.php
Log Message:
Fix for Bug #534313 Max posts in Inbox/Savebox/Sentbox = 0
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -r1.93 -r1.94
*** privmsg.php 25 Mar 2002 13:22:46 -0000 1.93
--- privmsg.php 25 Mar 2002 19:40:57 -0000 1.94
***************
*** 1901,1907 ****
if ( $folder != "outbox" )
{
! $inbox_limit_pct = round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 100);
! $inbox_limit_img_length = round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * $board_config['privmsg_graphic_length']);
! $inbox_limit_remain = $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total;
$template->assign_block_vars("box_size_notice", array());
--- 1901,1928 ----
if ( $folder != "outbox" )
{
! if ( $board_config['max_' . $folder . '_privmsgs'] > 0 )
! {
! $inbox_limit_pct = round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 100);
! }
! else
! {
! $inbox_limit_pct = 100;
! }
! if ( $board_config['max_' . $folder . '_privmsgs'] > 0 )
! {
! $inbox_limit_img_length = round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * $board_config['privmsg_graphic_length']);
! }
! else
! {
! $inbox_limit_img_length = $board_config['privmsg_graphic_length'];
! }
! if ( $board_config['max_' . $folder . '_privmsgs'] > 0 )
! {
! $inbox_limit_remain = $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total;
! }
! else
! {
! $inbox_limit_remain = 0;
! }
$template->assign_block_vars("box_size_notice", array());
|