aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/download.php2
-rw-r--r--phpBB/includes/functions.php4
-rw-r--r--phpBB/includes/functions_convert.php2
-rw-r--r--phpBB/includes/functions_posting.php2
-rw-r--r--phpBB/includes/functions_upload.php2
-rw-r--r--phpBB/includes/functions_user.php2
-rw-r--r--phpBB/includes/message_parser.php2
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php12
-rw-r--r--phpBB/language/en/ucp.php2
-rw-r--r--phpBB/viewtopic.php1
10 files changed, 22 insertions, 9 deletions
diff --git a/phpBB/download.php b/phpBB/download.php
index c1f28c080f..c24ea81425 100644
--- a/phpBB/download.php
+++ b/phpBB/download.php
@@ -294,7 +294,7 @@ function send_avatar_to_browser($file)
{
header('Pragma: public');
- $image_data = getimagesize($file_path);
+ $image_data = @getimagesize($file_path);
header('Content-Type: ' . image_type_to_mime_type($image_data[2]));
if (strpos(strtolower($browser), 'msie') !== false)
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 8120a852d0..fee5f49cc1 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2956,7 +2956,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count,
{
if ($config['img_link_width'] || $config['img_link_height'])
{
- $dimension = getimagesize($filename);
+ $dimension = @getimagesize($filename);
// If the dimensions could not be determined or the image being 0x0 we display it as a link for safety purposes
if ($dimension === false || empty($dimension[0]) || empty($dimension[1]))
@@ -3053,7 +3053,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count,
// Macromedia Flash Files
case ATTACHMENT_CATEGORY_FLASH:
- list($width, $height) = getimagesize($filename);
+ list($width, $height) = @getimagesize($filename);
$l_downloaded_viewed = 'VIEWED_COUNT';
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php
index fba79ae22b..22323a803a 100644
--- a/phpBB/includes/functions_convert.php
+++ b/phpBB/includes/functions_convert.php
@@ -679,7 +679,7 @@ function get_image_dim($source)
if (file_exists(relative_base($source, $relative_path)))
{
$image = relative_base($source, $relative_path);
- return getimagesize($image);
+ return @getimagesize($image);
}
return false;
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 69318212ea..64612f4ca3 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -578,7 +578,7 @@ function create_thumbnail($source, $destination, $mimetype)
return false;
}
- $dimension = getimagesize($source);
+ $dimension = @getimagesize($source);
if ($dimension === false)
{
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 93b809f296..68e06765a5 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -319,7 +319,7 @@ class filespec
{
$this->width = $this->height = 0;
- if (($this->image_info = getimagesize($this->destination_file)) !== false)
+ if (($this->image_info = @getimagesize($this->destination_file)) !== false)
{
$this->width = $this->image_info[0];
$this->height = $this->image_info[1];
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index a53577d68d..cab9d8bc25 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1603,7 +1603,7 @@ function avatar_remote($data, &$error)
}
// Make sure getimagesize works...
- if (($image_data = getimagesize($data['remotelink'])) === false)
+ if (($image_data = @getimagesize($data['remotelink'])) === false)
{
$error[] = $user->lang['UNABLE_GET_IMAGE_SIZE'];
return false;
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index f5b86b00a6..b8f00d71ee 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -280,7 +280,7 @@ class bbcode_firstpass extends bbcode
if ($config['max_' . $this->mode . '_img_height'] || $config['max_' . $this->mode . '_img_width'])
{
- $stats = getimagesize($in);
+ $stats = @getimagesize($in);
if ($stats === false)
{
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index c2dfc8dfb2..7b740c1515 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -459,6 +459,18 @@ function compose_pm($id, $mode, $action)
confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields);
}
}
+ else
+ {
+ if (!$subject)
+ {
+ $error[] = $user->lang['EMPTY_MESSAGE_SUBJECT'];
+ }
+
+ if (!$message)
+ {
+ $error[] = $user->lang['TOO_FEW_CHARS'];
+ }
+ }
unset($subject, $message);
}
diff --git a/phpBB/language/en/ucp.php b/phpBB/language/en/ucp.php
index 9658dc6ab0..65d32cab07 100644
--- a/phpBB/language/en/ucp.php
+++ b/phpBB/language/en/ucp.php
@@ -329,7 +329,7 @@ $lang = array_merge($lang, array(
'POPUP_ON_PM' => 'Pop up window on new private message',
'POST_EDIT_PM' => 'Edit message',
'POST_FORWARD_PM' => 'Forward message',
- 'POST_NEW_PM' => 'Post message',
+ 'POST_NEW_PM' => 'Compose message',
'POST_PM_LOCKED' => 'Private messaging is locked',
'POST_PM_POST' => 'Quote post',
'POST_QUOTE_PM' => 'Quote message',
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 04505d07f0..98d852737e 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1409,6 +1409,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
'S_UNREAD_POST' => $post_unread,
'S_FIRST_UNREAD' => $s_first_unread,
'S_CUSTOM_FIELDS' => (isset($cp_row['row']) && sizeof($cp_row['row'])) ? true : false,
+ 'S_TOPIC_POSTER' => ($topic_data['topic_poster'] == $poster_id) ? true : false,
'S_IGNORE_POST' => ($row['hide_post']) ? true : false,
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&amp;p={$row['post_id']}&amp;view=show#p{$row['post_id']}" . '">', '</a>') : '',