r51648 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51647‎ | r51648 | r51649 >
Date:16:15, 9 June 2009
Author:ialex
Status:ok
Tags:
Comment:
* spaces -> tabs for identation
* removed trailing spaces
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -113,16 +113,16 @@
114114 function efCentralNoticeSetup() {
115115 global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, $wgSpecialPages;
116116 global $wgCentralNoticeLoader;
117 -
 117+
118118 $dir = dirname( __FILE__ ) . '/';
119 -
 119+
120120 if( $wgCentralNoticeLoader ) {
121121 $wgHooks['BeforePageDisplay'][] = 'efCentralNoticeLoader';
122122 $wgHooks['SiteNoticeAfter'][] = 'efCentralNoticeDisplay';
123123 }
124 -
 124+
125125 $wgAutoloadClasses['NoticePage'] = $dir . 'NoticePage.php';
126 -
 126+
127127 if ( $wgNoticeInfrastructure ) {
128128 $wgSpecialPages['CentralNotice'] = 'CentralNotice';
129129 $wgSpecialPageGroups['CentralNotice'] = 'wiki'; // Wiki data and tools"
@@ -133,7 +133,7 @@
134134
135135 $wgSpecialPages['NoticeTemplate'] = 'SpecialNoticeTemplate';
136136 $wgAutoloadClasses['SpecialNoticeTemplate'] = $dir . 'SpecialNoticeTemplate.php';
137 - $wgAutoloadClasses['CentralNoticeDB'] = $dir. 'CentralNotice.db.php';
 137+ $wgAutoloadClasses['CentralNoticeDB'] = $dir. 'CentralNotice.db.php';
138138 }
139139 }
140140
@@ -141,10 +141,10 @@
142142 global $wgScript, $wgUser, $wgOut, $wgLang;
143143 global $wgStyleVersion, $wgJsMimeType;
144144 global $wgNoticeProject;
145 -
 145+
146146 global $wgNoticeCentralPath;
147147 global $wgNoticeLocalPath;
148 -
 148+
149149 $lang = $wgLang->getCode();
150150 $centralNotice = "$wgNoticeProject/$lang/centralnotice.js";
151151 /*
@@ -153,7 +153,7 @@
154154 : 'anonnotice.js';
155155 */
156156
157 -
 157+
158158 if ( $wgNoticeCentralPath === false ) {
159159 $centralLoader = SpecialPage::getTitleFor( 'NoticeText', $centralNotice )->getLocalUrl();
160160 } else {
@@ -173,7 +173,7 @@
174174 // Load the notice text from <head>
175175 $wgOut->addInlineScript( "var wgNotice='';var wgNoticeLocal='';" );
176176 $wgOut->addScript( "<script type=\"{$wgJsMimeType}\" src=\"$encCentralLoader?$wgStyleVersion\"></script>\n" );
177 -
 177+
178178 return true;
179179 }
180180

Status & tagging log