From 1cc10aaef63830ead662d8a962373554a949c951 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Nov 2009 08:33:48 -0500 Subject: [PATCH] set provider global JS variable from Mapstraction --- plugins/Mapstraction/MapstractionPlugin.php | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.39.5