Index: branches/wmf/1.17wmf1/extensions/ReaderFeedback/ReaderFeedback.hooks.php |
— | — | @@ -24,8 +24,7 @@ |
25 | 25 | // Add CSS |
26 | 26 | $wgOut->addExtensionStyle( $encCssFile ); |
27 | 27 | // Add JS |
28 | | - $head = "<script type=\"$wgJsMimeType\" src=\"$encJsFile\"></script>\n"; |
29 | | - $wgOut->addHeadItem( 'ReaderFeedback', $head ); |
| 28 | + $wgOut->addScriptFile( "$stylepath/readerfeedback.js?$wgFeedbackStyleVersion" ); |
30 | 29 | |
31 | 30 | return true; |
32 | 31 | } |