put out provider JS correctly

This commit is contained in:
Evan Prodromou 2009-11-19 11:21:51 -05:00
parent ecc1bd6130
commit 844a28aa9d
1 changed files with 3 additions and 2 deletions

View 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;
}