From: Brion Vibber Date: Fri, 22 Apr 2005 01:59:36 +0000 (+0000) Subject: Disable EXIF display if the PHP EXIF module isn't available. X-Git-Tag: 1.5.0alpha1~187 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7a982f1a8abccf7df74b89a179d6ddaa39626e4f;p=lhc%2Fweb%2Fwiklou.git Disable EXIF display if the PHP EXIF module isn't available. --- 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