aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-01-06 17:00:09 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-01-06 17:00:09 +0000
commit12a9e001837da139a9ea07b8dd52019ee071d9bd (patch)
treeede34133cd24f2fb7231e06f3933507d1241c13d /phpBB/includes/functions_posting.php
parenta7984e660da4def80d28a4efeacb5ee861c4718c (diff)
downloadforums-12a9e001837da139a9ea07b8dd52019ee071d9bd.tar
forums-12a9e001837da139a9ea07b8dd52019ee071d9bd.tar.gz
forums-12a9e001837da139a9ea07b8dd52019ee071d9bd.tar.bz2
forums-12a9e001837da139a9ea07b8dd52019ee071d9bd.tar.xz
forums-12a9e001837da139a9ea07b8dd52019ee071d9bd.zip
- Do not split topic list for topics being promoted to announcements after been moved to another forum (Bug #18635)
- Allow editing usernames within database_update on username cleanup (Bug #18415) - Fixing wrong sync() calls if moving all posts by a member in ACP (Bug #18385) - Check entered imagemagick path for trailing slash (Bug #18205) - Use proper title on index for new/unread posts (Bug #13101) - patch provided by Pyramide - Allow calls to $user->set_cookie() define no cookie time for setting session cookies (Bug #18025) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8310 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 9ed2d78cb7..4b7387115a 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -618,6 +618,11 @@ function create_thumbnail($source, $destination, $mimetype)
// Only use imagemagick if defined and the passthru function not disabled
if ($config['img_imagick'] && function_exists('passthru'))
{
+ if (substr($config['img_magick'], -1) !== '/')
+ {
+ $config['img_magick'] .= '/';
+ }
+
@passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -quality 85 -antialias -sample ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" +profile "*" "' . str_replace('\\', '/', $destination) . '"');
if (file_exists($destination))