r75567 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75566‎ | r75567 | r75568 >
Date:19:35, 27 October 2010
Author:kaldari
Status:deferred
Tags:
Comment:
using wgExtensionAssetsPath per Tim's suggestion at r73240
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialBannerAllocation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialBannerAllocation.php
@@ -19,7 +19,7 @@
2020 * Handle different types of page requests
2121 */
2222 function execute( $sub ) {
23 - global $wgOut, $wgUser, $wgRequest, $wgScriptPath, $wgNoticeProjects, $wgLanguageCode;
 23+ global $wgOut, $wgUser, $wgRequest, $wgExtensionAssetsPath, $wgNoticeProjects, $wgLanguageCode;
2424
2525 if ( $wgRequest->wasPosted() ) {
2626 $this->project = $wgRequest->getText( 'project', 'wikipedia' );
@@ -31,10 +31,10 @@
3232 $this->setHeaders();
3333
3434 // Add style file to the output headers
35 - $wgOut->addExtensionStyle( "$wgScriptPath/extensions/CentralNotice/centralnotice.css" );
 35+ $wgOut->addExtensionStyle( "$wgExtensionAssetsPath/CentralNotice/centralnotice.css" );
3636
3737 // Add script file to the output headers
38 - $wgOut->addScriptFile( "$wgScriptPath/extensions/CentralNotice/centralnotice.js" );
 38+ $wgOut->addScriptFile( "$wgExtensionAssetsPath/CentralNotice/centralnotice.js" );
3939
4040 // Initialize error variable
4141 $this->centralNoticeError = false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73240beginning support for viewing banner allocationkaldari18:54, 17 September 2010

Status & tagging log