diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-12-04 19:41:51 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-12-04 19:41:51 -0500 |
commit | 4c8bed8ba0558c5834621331f253e05029fa4e43 (patch) | |
tree | 796607aa0a8b6a7ce4ef73090a8b255a6b2bacdd /plugins/GoogleAnalyticsPlugin.php | |
parent | aab7344002fd390e5b62a3eb82f3a418fd294617 (diff) |
Use inlineScript() everywhere inline scripts are written
Diffstat (limited to 'plugins/GoogleAnalyticsPlugin.php')
-rw-r--r-- | plugins/GoogleAnalyticsPlugin.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/GoogleAnalyticsPlugin.php b/plugins/GoogleAnalyticsPlugin.php index 7f3d209ee..6891ee6a7 100644 --- a/plugins/GoogleAnalyticsPlugin.php +++ b/plugins/GoogleAnalyticsPlugin.php @@ -67,11 +67,7 @@ class GoogleAnalyticsPlugin extends Plugin 'pageTracker._trackPageview();'. '} catch(err) {}', $this->code); - $action->elementStart('script', array('type' => 'text/javascript')); - $action->raw($js1); - $action->elementEnd('script'); - $action->elementStart('script', array('type' => 'text/javascript')); - $action->raw($js2); - $action->elementEnd('script'); + $action->inlineScript($js1); + $action->inlineScript($js2); } } |