From: Evan Prodromou Date: Wed, 18 Nov 2009 13:33:48 +0000 (-0500) Subject: set provider global JS variable from Mapstraction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cc10aaef63830ead662d8a962373554a949c951;p=quix0rs-gnu-social.git set provider global JS variable from Mapstraction --- diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php index 9a99d67427..2784c7083d 100644 --- a/plugins/Mapstraction/MapstractionPlugin.php +++ b/plugins/Mapstraction/MapstractionPlugin.php @@ -144,6 +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)); + return true; } }