Moved avatar dir size lang generation into avatar dir size conditional

git-svn-id: file:///svn/phpbb/trunk@1409 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-21 16:54:13 +00:00
parent ce185663d4
commit d049d770c5

View file

@ -149,12 +149,6 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
} }
} }
@closedir($avatar_dir); @closedir($avatar_dir);
}
else
{
// Couldn't open Avatar dir.
$avatar_dir_size = $lang['Not_available'];
}
// //
// This bit of code translates the avatar directory size into human readable format // This bit of code translates the avatar directory size into human readable format
@ -174,6 +168,13 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
$avatar_dir_size = $avatar_dir_size . " Bytes"; $avatar_dir_size = $avatar_dir_size . " Bytes";
} }
}
else
{
// Couldn't open Avatar dir.
$avatar_dir_size = $lang['Not_available'];
}
if($posts_per_day > $total_posts) if($posts_per_day > $total_posts)
{ {
$posts_per_day = $total_posts; $posts_per_day = $total_posts;