mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Возможность получить старый path нахождения аттачей или аватар используя одну функцию
This commit is contained in:
parent
180f856406
commit
dd6e9aed8e
17 changed files with 113 additions and 103 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
class upload_common
|
||||
{
|
||||
var $cfg = array(
|
||||
|
@ -121,7 +123,7 @@ class upload_common
|
|||
if ($mode == 'avatar')
|
||||
{
|
||||
delete_avatar($params['user_id'], $params['avatar_ext_id']);
|
||||
$file_path = get_avatar_path($params['user_id'], $this->file_ext_id, $bb_cfg['avatars']['upload_path']);
|
||||
$file_path = get_avatar_path($params['user_id'], $this->file_ext_id);
|
||||
return $this->_move($file_path);
|
||||
}
|
||||
else if ($mode == 'attach')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue