Disable EXIF display if the PHP EXIF module isn't available.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 22 Apr 2005 01:59:36 +0000 (01:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 22 Apr 2005 01:59:36 +0000 (01:59 +0000)
includes/DefaultSettings.php

index 626a64b..4cd8bc9 100644 (file)
@@ -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