r88797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88796‎ | r88797 | r88798 >
Date:15:39, 25 May 2011
Author:mah
Status:ok
Tags:
Comment:
Misc EOL w/s and spaces-instead-of-tabs fixes. One day I'll get around to nagging people for this stuff, but for now, I'll JFDI myself.
Modified paths:
  • /trunk/phase3/includes/ChangesList.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/HTMLForm.php (modified) (history)
  • /trunk/phase3/includes/Linker.php (modified) (history)
  • /trunk/phase3/includes/Revision.php (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)
  • /trunk/phase3/includes/cache/MessageCache.php (modified) (history)
  • /trunk/phase3/includes/filerepo/File.php (modified) (history)
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)
  • /trunk/phase3/includes/revisiondelete/RevisionDelete.php (modified) (history)
  • /trunk/phase3/includes/revisiondelete/RevisionDeleteAbstracts.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -783,7 +783,7 @@
784784
785785 # empty line, go to next line,
786786 # but only append \n if outside of table
787 - if ( $line === '') {
 787+ if ( $line === '') {
788788 $output .= $outLine . "\n";
789789 continue;
790790 }
@@ -870,7 +870,7 @@
871871 // a table caption, but only proceed if there isn't one already
872872 if ( !isset ( $table['caption'] ) ) {
873873 $line = substr ( $line , 2 );
874 -
 874+
875875 $c = $this->getCellAttr( $line , 'caption' );
876876 $table['caption'] = array();
877877 $table['caption']['content'] = $c[0];
@@ -944,7 +944,7 @@
945945
946946 /**
947947 * Helper function for doTableStuff() separating the contents of cells from
948 - * attributes. Particularly useful as there's a possible bug and this action
 948+ * attributes. Particularly useful as there's a possible bug and this action
949949 * is repeated twice.
950950 *
951951 * @private
@@ -3511,7 +3511,7 @@
35123512 # Register the file as a dependency...
35133513 $this->mOutput->addImage( $title->getDBkey(), $time, $sha1 );
35143514 if ( $file && !$title->equals( $file->getTitle() ) ) {
3515 - # Update fetched file title
 3515+ # Update fetched file title
35163516 $title = $file->getTitle();
35173517 }
35183518 return array( $file, $title );
@@ -4729,14 +4729,14 @@
47304730 # Bogus title. Ignore these so we don't bomb out later.
47314731 continue;
47324732 }
4733 -
 4733+
47344734 $label = '';
47354735 $alt = '';
47364736 if ( isset( $matches[3] ) ) {
47374737 // look for an |alt= definition while trying not to break existing
47384738 // captions with multiple pipes (|) in it, until a more sensible grammar
47394739 // is defined for images in galleries
4740 -
 4740+
47414741 $matches[3] = $this->recursiveTagParse( trim( $matches[3] ) );
47424742 $altmatches = StringUtils::explode('|', $matches[3]);
47434743 $magicWordAlt = MagicWord::get( 'img_alt' );
Index: trunk/phase3/includes/Linker.php
@@ -879,7 +879,7 @@
880880 $class .= " {$attribs['class']}";
881881 }
882882 $attribs['class'] = $class;
883 -
 883+
884884 if ( $escape ) {
885885 $text = htmlspecialchars( $text );
886886 }
@@ -1329,7 +1329,7 @@
13301330 $formatted = self::formatComment( $comment, $title, $local );
13311331 if ( $embraced ) {
13321332 $formatted = wfMessage( 'parentheses' )->rawParams( $formatted )->escaped();
1333 - }
 1333+ }
13341334 return Html::rawElement( 'span', array( 'class' => 'comment' ), $formatted );
13351335 }
13361336 }
@@ -1534,12 +1534,12 @@
15351535 $query['bot'] = '1';
15361536 $query['hidediff'] = '1'; // bug 15999
15371537 }
1538 - return self::link(
1539 - $title,
 1538+ return self::link(
 1539+ $title,
15401540 wfMsgHtml( 'rollbacklink' ),
15411541 array( 'title' => wfMsg( 'tooltip-rollback' ) ),
1542 - $query,
1543 - array( 'known', 'noclasses' )
 1542+ $query,
 1543+ array( 'known', 'noclasses' )
15441544 );
15451545 }
15461546
@@ -1947,7 +1947,7 @@
19481948 }
19491949
19501950 class DummyLinker {
1951 -
 1951+
19521952 /**
19531953 * Use PHP's magic __call handler to transform instance calls to a dummy instance
19541954 * into static calls to the new Linker for backwards compatibility.
Index: trunk/phase3/includes/filerepo/File.php
@@ -176,7 +176,7 @@
177177 * @return Title
178178 */
179179 public function getTitle() { return $this->title; }
180 -
 180+
181181 /**
182182 * Return the title used to find this file
183183 */
@@ -288,8 +288,8 @@
289289 }
290290
291291 /**
292 - * Return true if the file is vectorized
293 - */
 292+ * Return true if the file is vectorized
 293+ */
294294 public function isVectorized() {
295295 $handler = $this->getHandler();
296296 if ( $handler ) {
@@ -318,7 +318,7 @@
319319 $handler = $this->getHandler();
320320 if ( !is_array( $metadata ) ) {
321321 //just to make the return type consistant
322 - $metadata = unserialize( $metadata );
 322+ $metadata = unserialize( $metadata );
323323 }
324324 if ( $handler ) {
325325 return $handler->convertMetadataVersion( $metadata, $version );
@@ -517,7 +517,7 @@
518518 function thumbName( $params ) {
519519 return $this->generateThumbName( $this->getName(), $params );
520520 }
521 -
 521+
522522 /**
523523 * Generate a thumbnail file name from a name and specified parameters
524524 *
@@ -612,8 +612,8 @@
613613 if ( file_exists( $thumbPath )) {
614614 $thumbTime = filemtime( $thumbPath );
615615 if ( $thumbTime !== FALSE &&
616 - gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) {
617 -
 616+ gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) {
 617+
618618 $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
619619 break;
620620 }
@@ -629,9 +629,9 @@
630630 $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
631631 }
632632 }
633 -
634 - // Purge. Useful in the event of Core -> Squid connection failure or squid
635 - // purge collisions from elsewhere during failure. Don't keep triggering for
 633+
 634+ // Purge. Useful in the event of Core -> Squid connection failure or squid
 635+ // purge collisions from elsewhere during failure. Don't keep triggering for
636636 // "thumbs" which have the main image URL though (bug 13776)
637637 if ( $wgUseSquid && ( !$thumb || $thumb->isError() || $thumb->getUrl() != $this->getURL()) ) {
638638 SquidUpdate::purge( array( $thumbUrl ) );
@@ -953,11 +953,11 @@
954954 function isDeleted( $field ) {
955955 return false;
956956 }
957 -
 957+
958958 /**
959959 * Return the deletion bitfield
960960 * STUB
961 - */
 961+ */
962962 function getVisibility() {
963963 return 0;
964964 }
@@ -1025,8 +1025,8 @@
10261026 }
10271027
10281028 /**
1029 - * Returns 'true' if this file is a type which supports multiple pages,
1030 - * e.g. DJVU or PDF. Note that this may be true even if the file in
 1029+ * Returns 'true' if this file is a type which supports multiple pages,
 1030+ * e.g. DJVU or PDF. Note that this may be true even if the file in
10311031 * question only has a single page.
10321032 *
10331033 * @return Bool
@@ -1096,7 +1096,7 @@
10971097 if ( $renderUrl ) {
10981098 if ( $this->repo->descriptionCacheExpiry > 0 ) {
10991099 wfDebug("Attempting to get the description from cache...");
1100 - $key = $this->repo->getLocalCacheKey( 'RemoteFileDescription', 'url', $wgLang->getCode(),
 1100+ $key = $this->repo->getLocalCacheKey( 'RemoteFileDescription', 'url', $wgLang->getCode(),
11011101 $this->getName() );
11021102 $obj = $wgMemc->get($key);
11031103 if ($obj) {
@@ -1153,7 +1153,7 @@
11541154 }
11551155 $ext = $this->getExtension();
11561156 $dotExt = $ext === '' ? '' : ".$ext";
1157 - return $hash . $dotExt;
 1157+ return $hash . $dotExt;
11581158 }
11591159
11601160 /**
@@ -1288,7 +1288,7 @@
12891289 function getRedirected() {
12901290 return $this->redirected;
12911291 }
1292 -
 1292+
12931293 function getRedirectedTitle() {
12941294 if ( $this->redirected ) {
12951295 if ( !$this->redirectTitle ) {
Index: trunk/phase3/includes/HTMLForm.php
@@ -318,9 +318,9 @@
319319 * Add header text, inside the form.
320320 * @param $msg String complete text of message to display
321321 */
322 - function addHeaderText( $msg, $section = null ) {
 322+ function addHeaderText( $msg, $section = null ) {
323323 if ( is_null( $section ) ) {
324 - $this->mHeader .= $msg;
 324+ $this->mHeader .= $msg;
325325 } else {
326326 if ( !isset( $this->mSectionHeaders[$section] ) ) {
327327 $this->mSectionHeaders[$section] = '';
@@ -333,14 +333,14 @@
334334 * Add footer text, inside the form.
335335 * @param $msg String complete text of message to display
336336 */
337 - function addFooterText( $msg, $section = null ) {
 337+ function addFooterText( $msg, $section = null ) {
338338 if ( is_null( $section ) ) {
339 - $this->mFooter .= $msg;
 339+ $this->mFooter .= $msg;
340340 } else {
341341 if ( !isset( $this->mSectionFooters[$section] ) ) {
342342 $this->mSectionFooters[$section] = '';
343343 }
344 - $this->mSectionFooters[$section] .= $msg;
 344+ $this->mSectionFooters[$section] .= $msg;
345345 }
346346 }
347347
@@ -693,11 +693,11 @@
694694 $legend = $this->getLegend( $key );
695695 if ( isset( $this->mSectionHeaders[$key] ) ) {
696696 $section = $this->mSectionHeaders[$key] . $section;
697 - }
 697+ }
698698 if ( isset( $this->mSectionFooters[$key] ) ) {
699699 $section .= $this->mSectionFooters[$key];
700700 }
701 - $subsectionHtml .= Xml::fieldset( $legend, $section ) . "\n";
 701+ $subsectionHtml .= Xml::fieldset( $legend, $section ) . "\n";
702702 }
703703 }
704704
@@ -1886,8 +1886,8 @@
18871887 }
18881888 }
18891889 $msg->inContentLanguage();
1890 -
1891 -
 1890+
 1891+
18921892 return '<tr><td></td><td class="mw-input">'
18931893 . '<div class="mw-editTools">'
18941894 . $msg->parseAsBlock()
Index: trunk/phase3/includes/revisiondelete/RevisionDelete.php
@@ -78,7 +78,7 @@
7979 public function getCurrent() {
8080 if ( is_null( $this->currentRevId ) ) {
8181 $dbw = wfGetDB( DB_MASTER );
82 - $this->currentRevId = $dbw->selectField(
 82+ $this->currentRevId = $dbw->selectField(
8383 'page', 'page_latest', $this->title->pageCond(), __METHOD__ );
8484 }
8585 return $this->currentRevId;
@@ -115,7 +115,7 @@
116116 public function canView() {
117117 return $this->revision->userCan( Revision::DELETED_RESTRICTED );
118118 }
119 -
 119+
120120 public function canViewContent() {
121121 return $this->revision->userCan( Revision::DELETED_TEXT );
122122 }
@@ -129,8 +129,8 @@
130130 // Update revision table
131131 $dbw->update( 'revision',
132132 array( 'rev_deleted' => $bits ),
133 - array(
134 - 'rev_id' => $this->revision->getId(),
 133+ array(
 134+ 'rev_id' => $this->revision->getId(),
135135 'rev_page' => $this->revision->getPage(),
136136 'rev_deleted' => $this->getBits()
137137 ),
@@ -142,7 +142,7 @@
143143 }
144144 // Update recentchanges table
145145 $dbw->update( 'recentchanges',
146 - array(
 146+ array(
147147 'rc_deleted' => $bits,
148148 'rc_patrolled' => 1
149149 ),
@@ -161,7 +161,7 @@
162162 }
163163
164164 public function isHideCurrentOp( $newBits ) {
165 - return ( $newBits & Revision::DELETED_TEXT )
 165+ return ( $newBits & Revision::DELETED_TEXT )
166166 && $this->list->getCurrent() == $this->getId();
167167 }
168168
@@ -177,7 +177,7 @@
178178 }
179179 return $this->special->skin->link(
180180 $this->list->title,
181 - $date,
 181+ $date,
182182 array(),
183183 array(
184184 'oldid' => $this->revision->getId(),
@@ -194,9 +194,9 @@
195195 if ( $this->isDeleted() && !$this->canViewContent() ) {
196196 return wfMsgHtml('diff');
197197 } else {
198 - return
199 - $this->special->skin->link(
200 - $this->list->title,
 198+ return
 199+ $this->special->skin->link(
 200+ $this->list->title,
201201 wfMsgHtml('diff'),
202202 array(),
203203 array(
@@ -281,7 +281,7 @@
282282 # Convert DB timestamp to MW timestamp
283283 return $this->revision->getTimestamp();
284284 }
285 -
 285+
286286 public function setBits( $bits ) {
287287 $dbw = wfGetDB( DB_MASTER );
288288 $dbw->update( 'archive',
@@ -315,8 +315,8 @@
316316 if ( $this->isDeleted() && !$this->canViewContent() ) {
317317 return wfMsgHtml( 'diff' );
318318 }
319 - $undelete = SpecialPage::getTitleFor( 'Undelete' );
320 - return $this->special->skin->link( $undelete, wfMsgHtml('diff'), array(),
 319+ $undelete = SpecialPage::getTitleFor( 'Undelete' );
 320+ return $this->special->skin->link( $undelete, wfMsgHtml('diff'), array(),
321321 array(
322322 'target' => $this->list->title->getPrefixedText(),
323323 'diff' => 'prev',
@@ -452,7 +452,7 @@
453453 public function canView() {
454454 return $this->file->userCan( File::DELETED_RESTRICTED );
455455 }
456 -
 456+
457457 public function canViewContent() {
458458 return $this->file->userCan( File::DELETED_FILE );
459459 }
@@ -484,12 +484,12 @@
485485 $dstRel = $this->file->repo->getDeletedHashPath( $key ) . $key;
486486 $this->list->deleteBatch[] = array( $this->file->getRel(), $dstRel );
487487 }
488 -
 488+
489489 # Do the database operations
490490 $dbw = wfGetDB( DB_MASTER );
491491 $dbw->update( 'oldimage',
492492 array( 'oi_deleted' => $bits ),
493 - array(
 493+ array(
494494 'oi_name' => $this->row->oi_name,
495495 'oi_timestamp' => $this->row->oi_timestamp,
496496 'oi_deleted' => $this->getBits()
@@ -504,20 +504,20 @@
505505 }
506506
507507 /**
508 - * Get the link to the file.
 508+ * Get the link to the file.
509509 * Overridden by RevDel_ArchivedFileItem.
510510 */
511511 protected function getLink() {
512512 global $wgLang, $wgUser;
513 - $date = $wgLang->timeanddate( $this->file->getTimestamp(), true );
 513+ $date = $wgLang->timeanddate( $this->file->getTimestamp(), true );
514514 if ( $this->isDeleted() ) {
515515 # Hidden files...
516516 if ( !$this->canViewContent() ) {
517517 $link = $date;
518518 } else {
519 - $link = $this->special->skin->link(
520 - $this->special->getTitle(),
521 - $date, array(),
 519+ $link = $this->special->skin->link(
 520+ $this->special->getTitle(),
 521+ $date, array(),
522522 array(
523523 'target' => $this->list->title->getPrefixedText(),
524524 'file' => $this->file->getArchiveName(),
@@ -568,14 +568,14 @@
569569
570570 public function getHTML() {
571571 global $wgLang;
572 - $data =
 572+ $data =
573573 wfMsg(
574 - 'widthheight',
 574+ 'widthheight',
575575 $wgLang->formatNum( $this->file->getWidth() ),
576 - $wgLang->formatNum( $this->file->getHeight() )
 576+ $wgLang->formatNum( $this->file->getHeight() )
577577 ) .
578 - ' (' .
579 - wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) .
 578+ ' (' .
 579+ wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) .
580580 ')';
581581
582582 return '<li>' . $this->getLink() . ' ' . $this->getUserTools() . ' ' .
@@ -715,7 +715,7 @@
716716 public function canView() {
717717 return LogEventsList::userCan( $this->row, Revision::DELETED_RESTRICTED );
718718 }
719 -
 719+
720720 public function canViewContent() {
721721 return true; // none
722722 }
@@ -727,9 +727,9 @@
728728 public function setBits( $bits ) {
729729 $dbw = wfGetDB( DB_MASTER );
730730 $dbw->update( 'recentchanges',
731 - array(
732 - 'rc_deleted' => $bits,
733 - 'rc_patrolled' => 1
 731+ array(
 732+ 'rc_deleted' => $bits,
 733+ 'rc_patrolled' => 1
734734 ),
735735 array(
736736 'rc_logid' => $this->row->log_id,
Index: trunk/phase3/includes/revisiondelete/RevisionDeleteAbstracts.php
@@ -66,7 +66,7 @@
6767 return $this->authorNameField;
6868 }
6969 /**
70 - * Set the visibility for the revisions in this list. Logging and
 70+ * Set the visibility for the revisions in this list. Logging and
7171 * transactions are done here.
7272 *
7373 * @param $params Associative array of parameters. Members are:
@@ -127,7 +127,7 @@
128128 $status->warning( 'revdelete-only-restricted', $item->formatDate(), $item->formatTime() );
129129 $status->failCount++;
130130 continue;
131 - }
 131+ }
132132
133133 // Update the revision
134134 $ok = $item->setBits( $newBits );
@@ -158,7 +158,7 @@
159159 return $status;
160160 }
161161
162 - // Save success count
 162+ // Save success count
163163 $successCount = $status->successCount;
164164
165165 // Move files, if there are any
@@ -171,9 +171,9 @@
172172
173173 // Log it
174174 $this->updateLog( array(
175 - 'title' => $this->title,
176 - 'count' => $successCount,
177 - 'newBits' => $newBits,
 175+ 'title' => $this->title,
 176+ 'count' => $successCount,
 177+ 'newBits' => $newBits,
178178 'oldBits' => $oldBits,
179179 'comment' => $comment,
180180 'ids' => $idsForLog,
@@ -200,7 +200,7 @@
201201 * Record a log entry on the action
202202 * @param $params Associative array of parameters:
203203 * newBits: The new value of the *_deleted bitfield
204 - * oldBits: The old value of the *_deleted bitfield.
 204+ * oldBits: The old value of the *_deleted bitfield.
205205 * title: The target title
206206 * ids: The ID list
207207 * comment: The log comment
@@ -265,7 +265,7 @@
266266 }
267267
268268 /**
269 - * Start iteration. This must be called before current() or next().
 269+ * Start iteration. This must be called before current() or next().
270270 * @return First list item
271271 */
272272 public function reset() {
@@ -293,7 +293,7 @@
294294 $this->initCurrent();
295295 return $this->current;
296296 }
297 -
 297+
298298 /**
299299 * Get the number of items in the list.
300300 */
@@ -312,7 +312,7 @@
313313 public function clearFileOps() {
314314 }
315315
316 - /**
 316+ /**
317317 * A hook for setVisibility(): do batch updates pre-commit.
318318 * STUB
319319 * @return Status
@@ -322,9 +322,9 @@
323323 }
324324
325325 /**
326 - * A hook for setVisibility(): do any necessary updates post-commit.
 326+ * A hook for setVisibility(): do any necessary updates post-commit.
327327 * STUB
328 - * @return Status
 328+ * @return Status
329329 */
330330 public function doPostCommitUpdates() {
331331 return Status::newGood();
@@ -361,7 +361,7 @@
362362 /** The DB result row */
363363 var $row;
364364
365 - /**
 365+ /**
366366 * @param $list RevDel_List
367367 * @param $row DB result row
368368 */
@@ -402,10 +402,10 @@
403403 $field = $this->list->getTimestampField();
404404 return wfTimestamp( TS_MW, $this->row->$field );
405405 }
406 -
 406+
407407 /**
408408 * Get the author user ID
409 - */
 409+ */
410410 public function getAuthorId() {
411411 $field = $this->list->getAuthorIdField();
412412 return intval( $this->row->$field );
@@ -413,13 +413,13 @@
414414
415415 /**
416416 * Get the author user name
417 - */
 417+ */
418418 public function getAuthorName() {
419419 $field = $this->list->getAuthorNameField();
420420 return strval( $this->row->$field );
421421 }
422422
423 - /**
 423+ /**
424424 * Returns true if the item is "current", and the operation to set the given
425425 * bits can't be executed for that reason
426426 * STUB
@@ -432,7 +432,7 @@
433433 * Returns true if the current user can view the item
434434 */
435435 abstract public function canView();
436 -
 436+
437437 /**
438438 * Returns true if the current user can view the item text/file
439439 */
@@ -453,8 +453,8 @@
454454 * Set the visibility of the item. This should do any necessary DB queries.
455455 *
456456 * The DB update query should have a condition which forces it to only update
457 - * if the value in the DB matches the value fetched earlier with the SELECT.
458 - * If the update fails because it did not match, the function should return
 457+ * if the value in the DB matches the value fetched earlier with the SELECT.
 458+ * If the update fails because it did not match, the function should return
459459 * false. This prevents concurrency problems.
460460 *
461461 * @return boolean success
Index: trunk/phase3/includes/Revision.php
@@ -25,7 +25,7 @@
2626 public static function newFromId( $id ) {
2727 return Revision::newFromConds(
2828 array( 'page_id=rev_page',
29 - 'rev_id' => intval( $id ) ) );
 29+ 'rev_id' => intval( $id ) ) );
3030 }
3131
3232 /**
@@ -38,8 +38,8 @@
3939 * @return Revision or null
4040 */
4141 public static function newFromTitle( $title, $id = 0 ) {
42 - $conds = array(
43 - 'page_namespace' => $title->getNamespace(),
 42+ $conds = array(
 43+ 'page_namespace' => $title->getNamespace(),
4444 'page_title' => $title->getDBkey()
4545 );
4646 if ( $id ) {
@@ -100,7 +100,7 @@
101101 public static function loadFromId( $db, $id ) {
102102 return Revision::loadFromConds( $db,
103103 array( 'page_id=rev_page',
104 - 'rev_id' => intval( $id ) ) );
 104+ 'rev_id' => intval( $id ) ) );
105105 }
106106
107107 /**
@@ -142,9 +142,9 @@
143143 return Revision::loadFromConds(
144144 $db,
145145 array( "rev_id=$matchId",
146 - 'page_id=rev_page',
147 - 'page_namespace' => $title->getNamespace(),
148 - 'page_title' => $title->getDBkey() ) );
 146+ 'page_id=rev_page',
 147+ 'page_namespace' => $title->getNamespace(),
 148+ 'page_title' => $title->getDBkey() ) );
149149 }
150150
151151 /**
@@ -161,9 +161,9 @@
162162 return Revision::loadFromConds(
163163 $db,
164164 array( 'rev_timestamp' => $db->timestamp( $timestamp ),
165 - 'page_id=rev_page',
166 - 'page_namespace' => $title->getNamespace(),
167 - 'page_title' => $title->getDBkey() ) );
 165+ 'page_id=rev_page',
 166+ 'page_namespace' => $title->getNamespace(),
 167+ 'page_title' => $title->getDBkey() ) );
168168 }
169169
170170 /**
@@ -216,9 +216,9 @@
217217 return Revision::fetchFromConds(
218218 wfGetDB( DB_SLAVE ),
219219 array( 'rev_id=page_latest',
220 - 'page_namespace' => $title->getNamespace(),
221 - 'page_title' => $title->getDBkey(),
222 - 'page_id=rev_page' ) );
 220+ 'page_namespace' => $title->getNamespace(),
 221+ 'page_title' => $title->getDBkey(),
 222+ 'page_id=rev_page' ) );
223223 }
224224
225225 /**
@@ -264,9 +264,9 @@
265265 'rev_parent_id'
266266 );
267267 }
268 -
 268+
269269 /**
270 - * Return the list of text fields that should be selected to read the
 270+ * Return the list of text fields that should be selected to read the
271271 * revision text
272272 */
273273 static function selectTextFields() {
@@ -412,11 +412,11 @@
413413 array( 'page', 'revision' ),
414414 array( 'page_namespace', 'page_title' ),
415415 array( 'page_id=rev_page',
416 - 'rev_id' => $this->mId ),
 416+ 'rev_id' => $this->mId ),
417417 'Revision::getTitle' );
418418 if( $row ) {
419419 $this->mTitle = Title::makeTitle( $row->page_namespace,
420 - $row->page_title );
 420+ $row->page_title );
421421 }
422422 return $this->mTitle;
423423 }
@@ -441,7 +441,7 @@
442442
443443 /**
444444 * Fetch revision's user id if it's available to the specified audience.
445 - * If the specified audience does not have access to it, zero will be
 445+ * If the specified audience does not have access to it, zero will be
446446 * returned.
447447 *
448448 * @param $audience Integer: one of:
@@ -473,7 +473,7 @@
474474
475475 /**
476476 * Fetch revision's username if it's available to the specified audience.
477 - * If the specified audience does not have access to the username, an
 477+ * If the specified audience does not have access to the username, an
478478 * empty string will be returned.
479479 *
480480 * @param $audience Integer: one of:
@@ -504,7 +504,7 @@
505505
506506 /**
507507 * Fetch revision comment if it's available to the specified audience.
508 - * If the specified audience does not have access to the comment, an
 508+ * If the specified audience does not have access to the comment, an
509509 * empty string will be returned.
510510 *
511511 * @param $audience Integer: one of:
@@ -539,7 +539,7 @@
540540 public function isMinor() {
541541 return (bool)$this->mMinorEdit;
542542 }
543 -
 543+
544544 /**
545545 * @return Integer rcid of the unpatrolled row, zero if there isn't one
546546 */
@@ -579,7 +579,7 @@
580580
581581 /**
582582 * Fetch revision text if it's available to the specified audience.
583 - * If the specified audience does not have the ability to view this
 583+ * If the specified audience does not have the ability to view this
584584 * revision, an empty string will be returned.
585585 *
586586 * @param $audience Integer: one of:
@@ -753,8 +753,8 @@
754754 }
755755
756756 global $wgLegacyEncoding;
757 - if( $text !== false && $wgLegacyEncoding
758 - && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) )
 757+ if( $text !== false && $wgLegacyEncoding
 758+ && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) )
759759 {
760760 # Old revisions kept around in a legacy encoding?
761761 # Upconvert on demand.
Index: trunk/phase3/includes/ChangesList.php
@@ -41,7 +41,7 @@
4242 protected $watchlist = false;
4343
4444 protected $message;
45 -
 45+
4646 /**
4747 * Changeslist contructor
4848 * @param $skin Skin
@@ -70,7 +70,7 @@
7171 return $list;
7272 }
7373 }
74 -
 74+
7575 /**
7676 * Sets the list to use a <li class="watchlist-(namespace)-(page)"> tag
7777 * @param $value Boolean
@@ -120,11 +120,11 @@
121121 public static function flag( $flag ) {
122122 static $messages = null;
123123 if ( is_null( $messages ) ) {
124 - $messages = array(
 124+ $messages = array(
125125 'newpage' => array( 'newpageletter', 'recentchanges-label-newpage' ),
126126 'minoredit' => array( 'minoreditletter', 'recentchanges-label-minor' ),
127127 'botedit' => array( 'boteditletter', 'recentchanges-label-bot' ),
128 - 'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ),
 128+ 'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ),
129129 );
130130 foreach( $messages as &$value ) {
131131 $value[0] = wfMsgExt( $value[0], 'escapenoentities' );
@@ -158,7 +158,7 @@
159159 $this->rclistOpen = false;
160160 return '';
161161 }
162 -
 162+
163163 /**
164164 * Show formatted char difference
165165 * @param $old Integer: bytes
@@ -174,29 +174,29 @@
175175 if ( !isset($fastCharDiff[$code]) ) {
176176 $fastCharDiff[$code] = $wgMiserMode || wfMsgNoTrans( 'rc-change-size' ) === '$1';
177177 }
178 -
 178+
179179 $formatedSize = $wgLang->formatNum($szdiff);
180180
181181 if ( !$fastCharDiff[$code] ) {
182182 $formatedSize = wfMsgExt( 'rc-change-size', array( 'parsemag', 'escape' ), $formatedSize );
183183 }
184 -
 184+
185185 if( abs( $szdiff ) > abs( $wgRCChangedSizeThreshold ) ) {
186186 $tag = 'strong';
187187 } else {
188 - $tag = 'span';
 188+ $tag = 'span';
189189 }
190190 if( $szdiff === 0 ) {
191191 return "<$tag class='mw-plusminus-null'>($formatedSize)</$tag>";
192192 } elseif( $szdiff > 0 ) {
193193 return "<$tag class='mw-plusminus-pos'>(+$formatedSize)</$tag>";
194 - } else {
 194+ } else {
195195 return "<$tag class='mw-plusminus-neg'>($formatedSize)</$tag>";
196196 }
197197 }
198198
199199 /**
200 - * Returns text for the end of RC
 200+ * Returns text for the end of RC
201201 * @return String
202202 */
203203 public function endRecentChangesList() {
@@ -370,7 +370,7 @@
371371 */
372372 public function insertTimestamp( &$s, $rc ) {
373373 global $wgLang;
374 - $s .= $this->message['semicolon-separator'] .
 374+ $s .= $this->message['semicolon-separator'] .
375375 $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . ';
376376 }
377377
@@ -474,7 +474,7 @@
475475 return '<span class="mw-rc-unwatched">' . $link . '</span>';
476476 }
477477 }
478 -
 478+
479479 /** Inserts a rollback link
480480 *
481481 * @param $s
@@ -509,7 +509,7 @@
510510 public function insertTags( &$s, &$rc, &$classes ) {
511511 if ( empty($rc->mAttribs['ts_tags']) )
512512 return;
513 -
 513+
514514 list($tagSummary, $newClasses) = ChangeTags::formatSummaryRow( $rc->mAttribs['ts_tags'], 'changeslist' );
515515 $classes = array_merge( $classes, $newClasses );
516516 $s .= ' ' . $tagSummary;
@@ -568,11 +568,11 @@
569569 } else {
570570 $this->insertDiffHist( $s, $rc, $unpatrolled );
571571 # M, N, b and ! (minor, new, bot and unpatrolled)
572 - $s .= $this->recentChangesFlags(
 572+ $s .= $this->recentChangesFlags(
573573 array(
574574 'newpage' => $rc->mAttribs['rc_new'],
575575 'minor' => $rc->mAttribs['rc_minor'],
576 - 'unpatrolled' => $unpatrolled,
 576+ 'unpatrolled' => $unpatrolled,
577577 'bot' => $rc->mAttribs['rc_bot']
578578 ),
579579 ''
@@ -600,17 +600,17 @@
601601 $this->insertRollback( $s, $rc );
602602 # For subclasses
603603 $this->insertExtra( $s, $rc, $classes );
604 -
 604+
605605 # How many users watch this page
606606 if( $rc->numberofWatchingusers > 0 ) {
607 - $s .= ' ' . wfMsgExt( 'number_of_watching_users_RCview',
 607+ $s .= ' ' . wfMsgExt( 'number_of_watching_users_RCview',
608608 array( 'parsemag', 'escape' ), $wgLang->formatNum( $rc->numberofWatchingusers ) );
609609 }
610 -
 610+
611611 if( $this->watchlist ) {
612612 $classes[] = Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] );
613613 }
614 -
 614+
615615 wfRunHooks( 'OldChangesListRecentChangesLine', array(&$this, &$s, $rc) );
616616
617617 wfProfileOut( __METHOD__ );
@@ -647,7 +647,7 @@
648648 */
649649 public function recentChangesLine( &$baseRC, $watched = false ) {
650650 global $wgLang, $wgUser;
651 -
 651+
652652 wfProfileIn( __METHOD__ );
653653
654654 # Create a specialised object
@@ -668,7 +668,7 @@
669669
670670 # Should patrol-related stuff be shown?
671671 if( $wgUser->useRCPatrol() ) {
672 - $rc->unpatrolled = !$rc->mAttribs['rc_patrolled'];
 672+ $rc->unpatrolled = !$rc->mAttribs['rc_patrolled'];
673673 } else {
674674 $rc->unpatrolled = false;
675675 }
@@ -691,7 +691,7 @@
692692 } else if( $type == RC_LOG ) {
693693 if( $logType ) {
694694 $logtitle = SpecialPage::getTitleFor( 'Log', $logType );
695 - $clink = '(' . $this->skin->linkKnown( $logtitle,
 695+ $clink = '(' . $this->skin->linkKnown( $logtitle,
696696 LogPage::logName( $logType ) ) . ')';
697697 } else {
698698 $clink = $this->skin->link( $rc->getTitle() );
@@ -874,7 +874,7 @@
875875 array_push( $users, $text );
876876 }
877877
878 - $users = ' <span class="changedby">[' .
 878+ $users = ' <span class="changedby">[' .
879879 implode( $this->message['semicolon-separator'], $users ) . ']</span>';
880880
881881 # Title for <a> tags
@@ -893,7 +893,7 @@
894894 $r .= '<td class="mw-enhanced-rc">' . $this->recentChangesFlags( array(
895895 'newpage' => $isnew,
896896 'minor' => false,
897 - 'unpatrolled' => $unpatrolled,
 897+ 'unpatrolled' => $unpatrolled,
898898 'bot' => $bot ,
899899 ) );
900900
@@ -930,7 +930,7 @@
931931 $params = $queryParams;
932932 $params['diff'] = $currentRevision;
933933 $params['oldid'] = $oldid;
934 -
 934+
935935 $r .= $this->skin->link(
936936 $block[0]->getTitle(),
937937 $nchanges[$n],
@@ -997,7 +997,7 @@
998998 $r .= $this->recentChangesFlags( array(
999999 'newpage' => $rcObj->mAttribs['rc_new'],
10001000 'minor' => $rcObj->mAttribs['rc_minor'],
1001 - 'unpatrolled' => $rcObj->unpatrolled,
 1001+ 'unpatrolled' => $rcObj->unpatrolled,
10021002 'bot' => $rcObj->mAttribs['rc_bot'],
10031003 ) );
10041004 $r .= '&#160;</td><td class="mw-enhanced-rc-nested"><span class="mw-enhanced-rc-time">';
@@ -1142,7 +1142,7 @@
11431143 $r .= $this->recentChangesFlags( array(
11441144 'newpage' => $type == RC_NEW,
11451145 'mino' => $rcObj->mAttribs['rc_minor'],
1146 - 'unpatrolled' => $rcObj->unpatrolled,
 1146+ 'unpatrolled' => $rcObj->unpatrolled,
11471147 'bot' => $rcObj->mAttribs['rc_bot'],
11481148 ) );
11491149 }
@@ -1232,7 +1232,7 @@
12331233 }
12341234
12351235 /**
1236 - * Returns text for the end of RC
 1236+ * Returns text for the end of RC
12371237 * If enhanced RC is in use, returns pretty much all the text
12381238 */
12391239 public function endRecentChangesList() {
Index: trunk/phase3/includes/cache/MessageCache.php
@@ -197,7 +197,7 @@
198198
199199 $filename = "$wgCacheDirectory/messages-" . wfWikiID() . "-$code";
200200 $tempFilename = $filename . '.tmp';
201 - wfMkdirParents( $wgCacheDirectory ); // might fail
 201+ wfMkdirParents( $wgCacheDirectory ); // might fail
202202
203203 wfSuppressWarnings();
204204 $file = fopen( $tempFilename, 'w' );
Index: trunk/phase3/includes/DefaultSettings.php
@@ -58,7 +58,7 @@
5959 # additionially, for requests made directly to an IPv6 address we have
6060 # to make sure the server enclose it in either [] or nothing at all
6161 && (strpos($_SERVER['SERVER_NAME'], '[')
62 - xor strpos( $_SERVER['SERVER_NAME'], ']'))
 62+ xor strpos( $_SERVER['SERVER_NAME'], ']'))
6363 ) {
6464 $serverName = $_SERVER['SERVER_NAME'];
6565 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
@@ -552,8 +552,8 @@
553553
554554 /**
555555 * Allow Java archive uploads.
556 - * This is not recommended for public wikis since a maliciously-constructed
557 - * applet running on the same domain as the wiki can steal the user's cookies.
 556+ * This is not recommended for public wikis since a maliciously-constructed
 557+ * applet running on the same domain as the wiki can steal the user's cookies.
558558 */
559559 $wgAllowJavaUploads = false;
560560
@@ -676,7 +676,7 @@
677677 $wgSVGMaxSize = 2048;
678678 /** Don't read SVG metadata beyond this point.
679679 * Default is 1024*256 bytes */
680 -$wgSVGMetadataCutoff = 262144;
 680+$wgSVGMetadataCutoff = 262144;
681681
682682 /**
683683 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
@@ -1483,7 +1483,7 @@
14841484 * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style
14851485 * database. This is slow, and is not recommended for
14861486 * anything other than debugging.
1487 - * - (other): A string may be used which identifies a cache
 1487+ * - (other): A string may be used which identifies a cache
14881488 * configuration in $wgObjectCaches.
14891489 *
14901490 * @see $wgMessageCacheType, $wgParserCacheType
@@ -1509,13 +1509,13 @@
15101510 /**
15111511 * Advanced object cache configuration.
15121512 *
1513 - * Use this to define the class names and constructor parameters which are used
1514 - * for the various cache types. Custom cache types may be defined here and
 1513+ * Use this to define the class names and constructor parameters which are used
 1514+ * for the various cache types. Custom cache types may be defined here and
15151515 * referenced from $wgMainCacheType, $wgMessageCacheType or $wgParserCacheType.
15161516 *
1517 - * The format is an associative array where the key is a cache identifier, and
 1517+ * The format is an associative array where the key is a cache identifier, and
15181518 * the value is an associative array of parameters. The "class" parameter is the
1519 - * class name which will be used. Alternatively, a "factory" parameter may be
 1519+ * class name which will be used. Alternatively, a "factory" parameter may be
15201520 * given, giving a callable function which will generate a suitable cache object.
15211521 *
15221522 * The other parameters are dependent on the class used.
@@ -3956,7 +3956,7 @@
39573957 $wgStatsMethod = 'cache';
39583958
39593959 /**
3960 - * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
 3960+ * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
39613961 * be aggregated over more than one wiki. The string will be used in place of
39623962 * the DB name in outgoing UDP packets. If this is set to false, the DB name
39633963 * will be used.
@@ -4639,15 +4639,15 @@
46404640 );
46414641
46424642 /**
4643 - * Extensions of "thumbnails" that are very expensive to regenerate and should be
4644 - * excluded from normal action=purge thumbnail removal.
 4643+ * Extensions of "thumbnails" that are very expensive to regenerate and should be
 4644+ * excluded from normal action=purge thumbnail removal.
46454645 */
46464646 $wgExcludeFromThumbnailPurge = array();
46474647
46484648 /**
46494649
46504650 * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
4651 - *
 4651+ *
46524652 * These can be:
46534653 * - Very long-running jobs.
46544654 * - Jobs that you would never want to run as part of a page rendering request.
Index: trunk/phase3/includes/SpecialPage.php
@@ -572,10 +572,10 @@
573573 function getTitle( $subpage = false ) {
574574 return self::getTitleFor( $this->mName, $subpage );
575575 }
576 -
 576+
577577 /**
578578 * Sets the context this SpecialPage is executed in
579 - *
 579+ *
580580 * @param $context RequestContext
581581 * @since 1.18
582582 */
@@ -585,7 +585,7 @@
586586
587587 /**
588588 * Gets the context this SpecialPage is executed in
589 - *
 589+ *
590590 * @return RequestContext
591591 * @since 1.18
592592 */
@@ -651,7 +651,7 @@
652652 /**
653653 * Wrapper around wfMessage that sets the current context. Currently this
654654 * is only the title.
655 - *
 655+ *
656656 * @see wfMessage
657657 */
658658 public function msg( /* $args */ ) {
@@ -832,7 +832,7 @@
833833
834834 // Query parameteres added by redirects
835835 protected $mAddedRedirectParams = array();
836 -
 836+
837837 public function execute( $par ){
838838 $redirect = $this->getRedirect( $par );
839839 $query = $this->getRedirectQuery();
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1722,16 +1722,16 @@
17231723 You can search via Google in the meantime.
17241724 Note that their indexes of {{SITENAME}} content may be out of date.',
17251725 'googlesearch' => '<form method="get" action="http://www.google.com/search" id="googlesearch">
1726 - <input type="hidden" name="domains" value="{{SERVER}}" />
1727 - <input type="hidden" name="num" value="50" />
1728 - <input type="hidden" name="ie" value="$2" />
1729 - <input type="hidden" name="oe" value="$2" />
 1726+ <input type="hidden" name="domains" value="{{SERVER}}" />
 1727+ <input type="hidden" name="num" value="50" />
 1728+ <input type="hidden" name="ie" value="$2" />
 1729+ <input type="hidden" name="oe" value="$2" />
17301730
1731 - <input type="text" name="q" size="31" maxlength="255" value="$1" />
1732 - <input type="submit" name="btnG" value="$3" />
 1731+ <input type="text" name="q" size="31" maxlength="255" value="$1" />
 1732+ <input type="submit" name="btnG" value="$3" />
17331733 <div>
1734 - <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
1735 - <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
 1734+ <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
 1735+ <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
17361736 </div>
17371737 </form>', # do not translate or duplicate this message to other languages
17381738
@@ -2767,7 +2767,7 @@
27682768 There will be no other notifications in case of further changes unless you visit this page.
27692769 You could also reset the notification flags for all your watched pages on your watchlist.
27702770
2771 - Your friendly {{SITENAME}} notification system
 2771+ Your friendly {{SITENAME}} notification system
27722772
27732773 --
27742774 To change your email notification settings, visit
Index: trunk/phase3/languages/messages/MessagesDe.php
@@ -2306,7 +2306,7 @@
23072307
23082308 Es werden dir solange keine weiteren Benachrichtigungs-E-Mails gesendet, bis du die Seite wieder besucht hast. Auf deiner Beobachtungsliste kannst du alle Benachrichtigungsmarkierungen zusammen zurücksetzen.
23092309
2310 - Dein freundliches {{SITENAME}}-Benachrichtigungssystem
 2310+ Dein freundliches {{SITENAME}}-Benachrichtigungssystem
23112311
23122312 --
23132313 Um die Einstellungen der E-Mail-Benachrichtigung anzupassen, besuche {{fullurl:{{#special:Preferences}}}}
@@ -2948,7 +2948,7 @@
29492949 #p-personal ul,
29502950 #p-cactions li a,
29512951 #preftoc a {
2952 - text-transform: none;
 2952+ text-transform: none;
29532953 }',
29542954 'vector.css' => '/* Das folgende CSS wird für Benutzer der Vector-Benutzeroberfläche geladen. Für allgemeingültige Benutzeroberflächen-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */',
29552955 'print.css' => '/* Das folgende CSS wird in der Druckausgabe geladen. */',
Index: trunk/phase3/languages/Language.php
@@ -152,14 +152,14 @@
153153 static $recursionLevel = 0;
154154
155155 // Protect against path traversal below
156 - if ( !Language::isValidCode( $code )
157 - || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
 156+ if ( !Language::isValidCode( $code )
 157+ || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
158158 {
159159 throw new MWException( "Invalid language code \"$code\"" );
160160 }
161161
162162 if ( !Language::isValidBuiltInCode( $code ) ) {
163 - // It's not possible to customise this code with class files, so
 163+ // It's not possible to customise this code with class files, so
164164 // just return a Language object. This is to support uselang= hacks.
165165 $lang = new Language;
166166 $lang->setCode( $code );
@@ -198,18 +198,18 @@
199199 }
200200
201201 /**
202 - * Returns true if a language code string is of a valid form, whether or
203 - * not it exists. This includes codes which are used solely for
 202+ * Returns true if a language code string is of a valid form, whether or
 203+ * not it exists. This includes codes which are used solely for
204204 * customisation via the MediaWiki namespace.
205205 */
206206 public static function isValidCode( $code ) {
207 - return
 207+ return
208208 strcspn( $code, ":/\\\000" ) === strlen( $code )
209209 && !preg_match( Title::getTitleInvalidRegex(), $code );
210210 }
211211
212212 /**
213 - * Returns true if a language code is of a valid form for the purposes of
 213+ * Returns true if a language code is of a valid form for the purposes of
214214 * internal customisation of MediaWiki, via Messages*.php.
215215 */
216216 public static function isValidBuiltInCode( $code ) {
@@ -590,15 +590,15 @@
591591 function getMonthName( $key ) {
592592 return $this->getMessageFromDB( self::$mMonthMsgs[$key - 1] );
593593 }
594 -
 594+
595595 function getMonthNamesArray() {
596596 $monthNames = array( '' );
597 - for ( $i=1; $i < 13; $i++ ) {
 597+ for ( $i=1; $i < 13; $i++ ) {
598598 $monthNames[] = $this->getMonthName( $i );
599599 }
600600 return $monthNames;
601601 }
602 -
 602+
603603 function getMonthNameGen( $key ) {
604604 return $this->getMessageFromDB( self::$mMonthGenMsgs[$key - 1] );
605605 }
@@ -606,15 +606,15 @@
607607 function getMonthAbbreviation( $key ) {
608608 return $this->getMessageFromDB( self::$mMonthAbbrevMsgs[$key - 1] );
609609 }
610 -
 610+
611611 function getMonthAbbreviationsArray() {
612612 $monthNames = array('');
613 - for ( $i=1; $i < 13; $i++ ) {
 613+ for ( $i=1; $i < 13; $i++ ) {
614614 $monthNames[] = $this->getMonthAbbreviation( $i );
615615 }
616616 return $monthNames;
617617 }
618 -
 618+
619619 function getWeekdayName( $key ) {
620620 return $this->getMessageFromDB( self::$mWeekdayMsgs[$key - 1] );
621621 }
@@ -2427,7 +2427,7 @@
24282428 }
24292429 # Do not truncate if the ellipsis makes the string longer/equal (bug 22181).
24302430 # This check is *not* redundant if $adjustLength, due to the single case where
2431 - # LEN($ellipsis) > ABS($limit arg); $stringOriginal could be shorter than $string.
 2431+ # LEN($ellipsis) > ABS($limit arg); $stringOriginal could be shorter than $string.
24322432 if ( strlen( $string ) < strlen( $stringOriginal ) ) {
24332433 return $string;
24342434 } else {
@@ -2918,12 +2918,12 @@
29192919 */
29202920 static function getFileName( $prefix = 'Language', $code, $suffix = '.php' ) {
29212921 // Protect against path traversal
2922 - if ( !Language::isValidCode( $code )
2923 - || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
 2922+ if ( !Language::isValidCode( $code )
 2923+ || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
29242924 {
29252925 throw new MWException( "Invalid language code \"$code\"" );
29262926 }
2927 -
 2927+
29282928 return $prefix . str_replace( '-', '_', ucfirst( $code ) ) . $suffix;
29292929 }
29302930

Status & tagging log