Index: trunk/extensions/CentralNotice/SpecialBannerAllocation.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * Handle different types of page requests |
21 | 21 | */ |
22 | 22 | function execute( $sub ) { |
23 | | - global $wgOut, $wgUser, $wgRequest, $wgScriptPath, $wgNoticeProjects, $wgLanguageCode; |
| 23 | + global $wgOut, $wgUser, $wgRequest, $wgExtensionAssetsPath, $wgNoticeProjects, $wgLanguageCode; |
24 | 24 | |
25 | 25 | if ( $wgRequest->wasPosted() ) { |
26 | 26 | $this->project = $wgRequest->getText( 'project', 'wikipedia' ); |
— | — | @@ -31,10 +31,10 @@ |
32 | 32 | $this->setHeaders(); |
33 | 33 | |
34 | 34 | // Add style file to the output headers |
35 | | - $wgOut->addExtensionStyle( "$wgScriptPath/extensions/CentralNotice/centralnotice.css" ); |
| 35 | + $wgOut->addExtensionStyle( "$wgExtensionAssetsPath/CentralNotice/centralnotice.css" ); |
36 | 36 | |
37 | 37 | // Add script file to the output headers |
38 | | - $wgOut->addScriptFile( "$wgScriptPath/extensions/CentralNotice/centralnotice.js" ); |
| 38 | + $wgOut->addScriptFile( "$wgExtensionAssetsPath/CentralNotice/centralnotice.js" ); |
39 | 39 | |
40 | 40 | // Initialize error variable |
41 | 41 | $this->centralNoticeError = false; |