Use script() to write out javascript <script> tags

This commit is contained in:
Craig Andrews
2009-08-05 20:15:00 -04:00
parent 9a9195ecd8
commit 5ba3383665
3 changed files with 5 additions and 14 deletions

View File

@@ -144,11 +144,7 @@ class FBConnectPlugin extends Plugin
function onEndShowFooter($action)
{
if ($this->reqFbScripts($action)) {
$action->element('script',
array('type' => 'text/javascript',
'src' => 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php'),
'');
$action->script('http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php');
}
}