--- google_earth.module	2007-05-14 13:30:18.000000000 +0300
+++ google_earth.new.module	2007-05-14 13:30:02.000000000 +0300
@@ -13,7 +13,7 @@ function google_earth_perm() {
 function google_earth_menu($may_cache) {
   $items = array();
 	if ($may_cache) {
-    if (variable_get("google_earth_kml_wwwpath","")!="") {
+    if (variable_get("google_earth_kml_path","")!="") {
       $items[] = array(
 				'path' => 'google_earth',
 				'title' => t("Google Earth map"),
@@ -43,13 +43,13 @@ function google_earth_download() {
   if (!user_access('google earth download map')) {
 		return;
 	}
-	$google_earth_kml_wwwpath = variable_get("google_earth_kml_wwwpath","");
+	$google_earth_kml_path = variable_get("google_earth_kml_path","");
   header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
   header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
   header("Pragma: public");
   header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
   header("Content-type: application/vnd.google-earth.kml+xml kml");
-  readfile($google_earth_kml_wwwpath);
+  readfile($google_earth_kml_path);
   flush();
 
   $buffer = "";
@@ -309,15 +309,6 @@ function google_earth_settings_base($gro
     '#description' => t("Set the path to store the KML file"),
     '#required' => TRUE,
   );
-  $form[$group]['google_earth_kml_wwwpath'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Web path to the KML file'),
-    '#size' => 80,
-    '#maxlength' => 255,
-    '#default_value' => variable_get("google_earth_kml_wwwpath", "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]).((dirname($_SERVER["PHP_SELF"])!='')?'/':'')."files/google_earth/google_earth.kml"),
-    '#description' => t("Set the web path to the KML file"),
-    '#required' => TRUE,
-  );
   $form[$group]['google_earth_limit'] = array(
     '#type' => 'textfield',
     '#title' => t('Limit query result'),
