mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fixed broken getting avatars directory size
This commit is contained in:
parent
005b99b6ef
commit
b950858cf9
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
|
|||
if ($avatar_dir = opendir($bb_cfg['avatars']['upload_path'])) {
|
||||
while ($file = readdir($avatar_dir)) {
|
||||
if ($file != '.' && $file != '..') {
|
||||
$avatar_dir_size += @filesize(BB_ROOT . $bb_cfg['avatar_path'] . '/' . $file);
|
||||
$avatar_dir_size += @filesize($bb_cfg['avatars']['upload_path'] . $file);
|
||||
}
|
||||
}
|
||||
closedir($avatar_dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue