From d9129635886e2c1c1f64a3008b4b26a8b167127d Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 6 Sep 2007 20:08:08 +0000 Subject: [PATCH] (bug 3846) Suppress warnings from, e.g. open_basedir when scanning for ImageMagick, diff3 et al. during installation [patch by Jan Reininghaus] --- RELEASE-NOTES | 6 ++++-- config/index.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ee9b0cfcd2..cb4f712ec8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -23,13 +23,15 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === New features in 1.12 === === Bug fixes in 1.12 === -* Subpages are now indexed for searching properly when using Postgres + +* Subpages are now indexed for searching properly when using PostgreSQL +* (bug 3846) Suppress warnings from, e.g. open_basedir when scanning for + ImageMagick, diff3 et al. during installation [patch by Jan Reininghaus] === API changes in 1.12 === Full API documentation is available at http://www.mediawiki.org/wiki/API - === Languages updated in 1.12 === == Compatibility == diff --git a/config/index.php b/config/index.php index 274a1531e0..b59b59d4d7 100644 --- a/config/index.php +++ b/config/index.php @@ -514,7 +514,7 @@ $conf->ImageMagick = false; $imcheck = array( "/usr/bin", "/opt/csw/bin", "/usr/local/bin", "/sw/bin", "/opt/local/bin" ); foreach( $imcheck as $dir ) { $im = "$dir/convert"; - if( file_exists( $im ) ) { + if( @file_exists( $im ) ) { print "
  • Found ImageMagick: $im; image thumbnailing will be enabled if you enable uploads.
  • \n"; $conf->ImageMagick = $im; break; @@ -1790,7 +1790,7 @@ function locate_executable($loc, $names, $versioninfo = false) { foreach ($names as $name) { $command = "$loc".DIRECTORY_SEPARATOR."$name"; - if (file_exists($command)) { + if (@file_exists($command)) { if (!$versioninfo) return $command; -- 2.20.1