--- a/trunk/extensions/WeCoWi/WeCoWi.php
+++ b/trunk/extensions/WeCoWi/WeCoWi.php
@@ -65,7 +65,7 @@
         $bar['Social Networks'] = $out;
 		return true;
 }
-function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {	
+function SocialSidebarScripts ( OutputPage &$out, Skin &$skin ) {	
 		$out->addScript( '<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>' );	
 		$out->addScript('<script>(function(d, s, id) {
 					  var js, fjs = d.getElementsByTagName(s)[0];