diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-08-17 12:44:19 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-08-17 12:44:19 +0000 |
commit | 6382a99a5dda9f97693f9991e67057dc8890f2d8 (patch) | |
tree | 5efe18a2e005cd73b53862dc410178787487d6fc /skins | |
parent | f91bed823de0be2be7f9aec9e60502af23704f46 (diff) | |
download | mediawiki-6382a99a5dda9f97693f9991e67057dc8890f2d8.tar mediawiki-6382a99a5dda9f97693f9991e67057dc8890f2d8.tar.gz mediawiki-6382a99a5dda9f97693f9991e67057dc8890f2d8.tar.bz2 mediawiki-6382a99a5dda9f97693f9991e67057dc8890f2d8.tar.xz mediawiki-6382a99a5dda9f97693f9991e67057dc8890f2d8.zip |
put the code back at the end of the template...
Diffstat (limited to 'skins')
-rw-r--r-- | skins/Vector.php | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/skins/Vector.php b/skins/Vector.php index 8f2626c..8fdbb7c 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -445,21 +445,6 @@ class VectorTemplate extends QuickTemplate { $this->data['personal_urls'] = array_reverse( $this->data['personal_urls'] ); } - - $wgOut->addScript(' -<script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(["_setAccount", "UA-18603191-2"]); - _gaq.push(["_trackPageview"]); - - (function() { - var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true; - ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js"; - var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s); - })(); -</script> -'); - // Output HTML Page $this->html( 'headelement' ); @@ -614,6 +599,17 @@ class VectorTemplate extends QuickTemplate { <!-- Debug output: <?php $this->text( 'debug' ); ?> --> <?php endif; ?> </div> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(["_setAccount", "UA-18603191-2"]); + _gaq.push(["_trackPageview"]); + + (function() { + var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true; + ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js"; + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> <script src="//nav.mageia.org/js/"></script> </body> </html> |