put out provider JS correctly
This commit is contained in:
parent
ecc1bd6130
commit
844a28aa9d
|
@ -144,8 +144,9 @@ class MapstractionPlugin extends Plugin
|
||||||
common_path('plugins/Mapstraction/js/mxn.js'),
|
common_path('plugins/Mapstraction/js/mxn.js'),
|
||||||
$this->provider));
|
$this->provider));
|
||||||
|
|
||||||
$action->element('script', array('type' => 'text/javascript'),
|
$action->elementStart('script', array('type' => 'text/javascript'));
|
||||||
sprintf('var _provider = "%s";', $this->provider));
|
$action->raw(sprintf('var _provider = "%s";', $this->provider));
|
||||||
|
$action->elementEnd('script');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user