diff options
author | Evan Prodromou <evan@status.net> | 2009-11-18 08:33:48 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-18 08:33:48 -0500 |
commit | 1cc10aaef63830ead662d8a962373554a949c951 (patch) | |
tree | 511e1bf43c012b25d159efc5d9e0a33d052dcc22 /plugins/Mapstraction | |
parent | fc08a5c8803fd79d58126528fa4a593ccfb8d512 (diff) |
set provider global JS variable from Mapstraction
Diffstat (limited to 'plugins/Mapstraction')
-rw-r--r-- | plugins/Mapstraction/MapstractionPlugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php index 9a99d6742..2784c7083 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; } } |