From 7a982f1a8abccf7df74b89a179d6ddaa39626e4f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 22 Apr 2005 01:59:36 +0000 Subject: [PATCH] Disable EXIF display if the PHP EXIF module isn't available. --- includes/DefaultSettings.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 626a64b4e8..4cd8bc9825 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -733,8 +733,12 @@ $wgDisableTextSearch = false; $wgDisableSearchUpdate = false; /** Uploads have to be specially set up to be secure */ $wgEnableUploads = false; -/** Show EXIF data, on by default */ -$wgShowEXIF = true ; +/** + * Show EXIF data, on by default if available. + * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php + */ +$wgShowEXIF = function_exists( 'exif_read_data' ); + /** * Set to true to enable the upload _link_ while local uploads are disabled. * Assumes that the special page link will be bounced to another server where -- 2.20.1