Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17525: LJSUP-6862: Add ability to insert maps (...

Committer: gariev
LJSUP-6862: Add ability to insert maps (Google&Yandex) into the posts

U   trunk/cgi-bin/LJ/Maps.pm
Modified: trunk/cgi-bin/LJ/Maps.pm
===================================================================
--- trunk/cgi-bin/LJ/Maps.pm	2010-10-11 03:04:57 UTC (rev 17524)
+++ trunk/cgi-bin/LJ/Maps.pm	2010-10-11 03:12:54 UTC (rev 17525)
@@ -21,12 +21,8 @@
             my $height = LJ::ehtml($attr->{'height'}) || 350;
             if ($host eq 'maps.google.com') {
                 $iframe_url = URI->new("http://maps.google.com/");
-                $iframe_url->query_form(
-                    ll      => $url_params{'ll'},
-                    spn     => $url_params{'spn'},
-                    z       => $url_params{'z'},
-                    output  => "embed"
-                );
+                $url_params{'output'} = 'embed';
+                $iframe_url->query_form(%url_params);
             } elsif ($host eq 'maps.yandex.ru') {
                 $iframe_url = 
                     "http://$LJ::EMBED_MODULE_DOMAIN?mode=lj-map&url=" . LJ::eurl($url) 

Tags: gariev, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments