mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
those were missing
git-svn-id: file:///svn/phpbb/trunk@6977 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ffb28e03ae
commit
5e3afe73ec
2 changed files with 4 additions and 4 deletions
|
@ -209,12 +209,12 @@ class messenger
|
||||||
$match = array();
|
$match = array();
|
||||||
if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
|
if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
|
||||||
{
|
{
|
||||||
$this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : $user->lang['NO_SUBJECT']);
|
$this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
|
||||||
$drop_header .= '[\r\n]*?' . preg_quote($match[1], '#');
|
$drop_header .= '[\r\n]*?' . preg_quote($match[1], '#');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->subject = (($this->subject != '') ? $this->subject : $user->lang['NO_SUBJECT']);
|
$this->subject = (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($drop_header)
|
if ($drop_header)
|
||||||
|
|
|
@ -311,7 +311,7 @@ function posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL)
|
||||||
* Upload Attachment - filedata is generated here
|
* Upload Attachment - filedata is generated here
|
||||||
* Uses upload class
|
* Uses upload class
|
||||||
*/
|
*/
|
||||||
function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false)
|
function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false)
|
||||||
{
|
{
|
||||||
global $auth, $user, $config, $db, $cache;
|
global $auth, $user, $config, $db, $cache;
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
@ -341,7 +341,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
||||||
$extensions = $cache->obtain_attach_extensions((($is_message) ? false : (int) $forum_id));
|
$extensions = $cache->obtain_attach_extensions((($is_message) ? false : (int) $forum_id));
|
||||||
$upload->set_allowed_extensions(array_keys($extensions['_allowed_']));
|
$upload->set_allowed_extensions(array_keys($extensions['_allowed_']));
|
||||||
|
|
||||||
$file = ($local) ? $upload->local_upload($local_storage) : $upload->form_upload($form_name);
|
$file = ($local) ? $upload->local_upload($local_storage, $local_filedata) : $upload->form_upload($form_name);
|
||||||
|
|
||||||
if ($file->init_error)
|
if ($file->init_error)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue