mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Fix for Bug #534313 Max posts in Inbox/Savebox/Sentbox = 0
git-svn-id: file:///svn/phpbb/trunk@2432 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f1c8e6c954
commit
9b7b652679
1 changed files with 24 additions and 3 deletions
|
@ -1900,9 +1900,30 @@ else if ( $folder == "sentbox" )
|
||||||
//
|
//
|
||||||
if ( $folder != "outbox" )
|
if ( $folder != "outbox" )
|
||||||
{
|
{
|
||||||
$inbox_limit_pct = round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 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']);
|
{
|
||||||
$inbox_limit_remain = $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total;
|
$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());
|
$template->assign_block_vars("box_size_notice", array());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue