From e98e4467fe3bbfc620f2915ae7b9b39946ad4a69 Mon Sep 17 00:00:00 2001
From: "haiiro.shimeji" <haiiro.shimeji@gmail.com>
Date: Wed, 21 Mar 2012 10:37:50 +0900
Subject: [PATCH] The variable table in D7 does not have 'file_downloads'

---
 gmap_settings_ui.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gmap_settings_ui.inc b/gmap_settings_ui.inc
index 33d1cfa..f276c3f 100644
--- a/gmap_settings_ui.inc
+++ b/gmap_settings_ui.inc
@@ -17,8 +17,8 @@ function gmap_admin_settings($form, &$form_state) {
     '#title' => t('Google Map Initialize'),
   );
 
-  if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) != FILE_DOWNLOADS_PUBLIC) {
-    $form['initialization']['gmap_private_markerfile'] = array(
+if (file_default_scheme() != 'public') {
+  $form['initialization']['gmap_private_markerfile'] = array(
       '#type' => 'textfield',
       '#title' => t('Path to gmap_markers.js'),
       '#description' => t('You are using the <em>Private</em> download method. For markers to work properly. you must press the <em>Regenerate</em> button, manually copy js/gmap_markers.js from the files directory to a location accessible by the webserver, and enter the file path relative to the Drupal root (including the filename) in this field. Example: <em>sites/default/misc/gmap_markers.js</em>'),
-- 
GitLab