mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/13454] Remove unused variables
Part 4 PHPBB3-13454
This commit is contained in:
@@ -598,7 +598,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
$enable_urls = true;
|
||||
}
|
||||
|
||||
$enable_magic_url = $drafts = false;
|
||||
$drafts = false;
|
||||
|
||||
// User own some drafts?
|
||||
if ($auth->acl_get('u_savedrafts') && $action != 'delete')
|
||||
@@ -739,16 +739,6 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
$enable_urls = (isset($_POST['disable_magic_url'])) ? 0 : 1;
|
||||
$enable_sig = (!$config['allow_sig'] ||!$config['allow_sig_pm']) ? false : ((isset($_POST['attach_sig'])) ? true : false);
|
||||
|
||||
if ($submit)
|
||||
{
|
||||
$status_switch = (($enable_bbcode+1) << 8) + (($enable_smilies+1) << 4) + (($enable_urls+1) << 2) + (($enable_sig+1) << 1);
|
||||
$status_switch = ($status_switch != $check_value);
|
||||
}
|
||||
else
|
||||
{
|
||||
$status_switch = 1;
|
||||
}
|
||||
|
||||
// Parse Attachments - before checksum is calculated
|
||||
$message_parser->parse_attachments('fileupload', $action, 0, $submit, $preview, $refresh, true);
|
||||
|
||||
|
Reference in New Issue
Block a user