aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/features.php1
-rw-r--r--include/photos.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/features.php b/include/features.php
index fc14858a8..08b32fe19 100644
--- a/include/features.php
+++ b/include/features.php
@@ -44,6 +44,7 @@ function get_features() {
array('webpages', t('Web Pages'), t('Provide managed web pages on your channel'),false),
array('private_notes', t('Private Notes'), t('Enables a tool to store notes and reminders'),false),
array('nav_channel_select', t('Navigation Channel Select'), t('Change channels directly from within the navigation dropdown menu'),false),
+ array('photo_location', t('Photo Location'), t('Photo metadata is normally stripped. This extracts the location (if present) prior to stripping metadata and links it to a map.'),false),
//FIXME - needs a description, but how the hell do we explain this to normals?
diff --git a/include/photos.php b/include/photos.php
index 4785e47c4..4d3f4c755 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -208,7 +208,7 @@ function photo_upload($channel, $observer, $args) {
$lat = $lon = null;
if($exif && $exif['GPS']) {
- if(get_pconfig($channel_id,'system','allow_photo_location')) {
+ if(feature_enabled($channel_id,'photo_location')) {
$lat = getGps($exif['GPS']['GPSLatitude'], $exif['GPSLatitudeRef']);
$lon = getGps($exif['GPS']['GPSLongitude'], $exif['GPSLongitudeRef']);
}