mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
PSR-4 compatible legacy code autoloading.
This commit is contained in:
parent
e463fee20f
commit
80a035d191
50 changed files with 5296 additions and 4522 deletions
|
@ -56,8 +56,7 @@ if ($is_moderator) {
|
|||
// Avatar
|
||||
if ($submit) {
|
||||
if (!empty($_FILES['avatar']['name']) && $bb_cfg['group_avatars']['up_allowed']) {
|
||||
require INC_DIR . '/functions_upload.php';
|
||||
$upload = new upload_common();
|
||||
$upload = new TorrentPier\Legacy\Common\Upload();
|
||||
|
||||
if ($upload->init($bb_cfg['group_avatars'], $_FILES['avatar']) and $upload->store('avatar', array("user_id" => GROUP_AVATAR_MASK . $group_id, "avatar_ext_id" => $group_info['avatar_ext_id']))) {
|
||||
$avatar_ext_id = (int)$upload->file_ext_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue