]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
put out provider JS correctly
authorEvan Prodromou <evan@status.net>
Thu, 19 Nov 2009 16:21:51 +0000 (11:21 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 19 Nov 2009 16:21:51 +0000 (11:21 -0500)
plugins/Mapstraction/MapstractionPlugin.php

index 2784c7083d3bc85f2e7162354939357d6c92635f..4b80ff979d49dfc925f6257a9c04a45a0c86e6a8 100644 (file)
@@ -144,8 +144,9 @@ class MapstractionPlugin extends Plugin
                                 common_path('plugins/Mapstraction/js/mxn.js'),
                                 $this->provider));
 
-        $action->element('script', array('type' => 'text/javascript'),
-                         sprintf('var _provider = "%s";', $this->provider));
+        $action->elementStart('script', array('type' => 'text/javascript'));
+        $action->raw(sprintf('var _provider = "%s";', $this->provider));
+        $action->elementEnd('script');
 
         return true;
     }