mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Introduced pagestart.inc
git-svn-id: file:///svn/phpbb/trunk@798 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -153,7 +153,7 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
|
||||
|
||||
$avatar_dir_size = 0;
|
||||
|
||||
if ($avatar_dir = opendir($phpbb_root_path . $board_config['avatar_path']))
|
||||
if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']))
|
||||
{
|
||||
while($file = readdir($avatar_dir))
|
||||
{
|
||||
@@ -164,6 +164,11 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
|
||||
}
|
||||
closedir($avatar_dir);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Couldn't open Avatar dir.
|
||||
$avatar_dir_size = '?';
|
||||
}
|
||||
|
||||
//
|
||||
// This bit of code translates the avatar directory size into human readable format
|
||||
@@ -415,4 +420,4 @@ else
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user