davemds pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=2152d390848aaafe26b5e5fa726bb2c89f618a90

commit 2152d390848aaafe26b5e5fa726bb2c89f618a90
Author: davemds <[email protected]>
Date:   Tue Nov 5 00:42:36 2013 +0100

    2 small fix for the map
---
 public_html/p/contact/devsmap/en-body | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/public_html/p/contact/devsmap/en-body 
b/public_html/p/contact/devsmap/en-body
index 0f53920..c06a371 100644
--- a/public_html/p/contact/devsmap/en-body
+++ b/public_html/p/contact/devsmap/en-body
@@ -1,6 +1,7 @@
 <?php
 /*******   Enlightenment Developers Map   *******/
 $devs_dir = $_SERVER["DOCUMENT_ROOT"] . "/DATA/devs/developers";
+$devs_url = "/DATA/devs/developers";
 $geocache_file = sys_get_temp_dir() . "/e_devs_map_geocache";
 //***************************************************
 
@@ -99,7 +100,7 @@ foreach (developers_active() as $login => $data )
    /* or use the geocoder to guess the position */
    if (!($lat AND $lon) AND $data["Location"])
    {
-      $coords = GeoCoordsQuery($Location);
+      $coords = GeoCoordsQuery($data["Location"]);
       if ($coords["lat"] AND $coords["lon"])
       {
          $tot_guessed ++;
@@ -131,13 +132,13 @@ foreach (developers_active() as $login => $data )
 
    /* check the user icon (icon-map.png, green or red) */
    if (file_exists("$devs_dir/$dev[Login]/icon-map.png"))
-     $dev["Icon"] = "$devs_dir/$dev[Login]/icon-map.png";
+     $dev["Icon"] = "$devs_url/$dev[Login]/icon-map.png";
    else
      $dev["Icon"] = $icon;
 
    /* check the user image (icon-med.png) */
    if (file_exists("$devs_dir/$dev[Login]/icon-med.png"))
-      $dev["IconBig"] = "$devs_dir/$dev[Login]/icon-med.png";
+      $dev["IconBig"] = "$devs_url/$dev[Login]/icon-med.png";
    else
       $dev["IconBig"] = "";
 

-- 


Reply via email to