r32861 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32860‎ | r32861 | r32862 >
Date:17:52, 6 April 2008
Author:simetrical
Status:old
Tags:
Comment:
Some random whitespace/style fixes
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -539,9 +539,9 @@
540540 # whitespace from the text boxes. This may be significant formatting.
541541 $this->textbox1 = $this->safeUnicodeInput( $request, 'wpTextbox1' );
542542 $this->textbox2 = $this->safeUnicodeInput( $request, 'wpTextbox2' );
543 - $this->mMetaData = rtrim( $request->getText( 'metadata' ) );
 543+ $this->mMetaData = rtrim( $request->getText( 'metadata' ) );
544544 # Truncate for whole multibyte characters. +5 bytes for ellipsis
545 - $this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 );
 545+ $this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 );
546546
547547 # Remove extra headings and whitespace from summaries and new sections.
548548 $this->summary = trim(preg_replace('/^=+(.*?)=+$/', '$1', trim($this->summary)));
@@ -581,7 +581,7 @@
582582 $this->preview = true;
583583 }
584584 }
585 - $this->save = ! ( $this->preview OR $this->diff );
 585+ $this->save = !$this->preview && !$this->diff;
586586 if( !preg_match( '/^\d{14}$/', $this->edittime )) {
587587 $this->edittime = null;
588588 }
@@ -924,7 +924,7 @@
925925 }
926926 }
927927
928 - #And a similar thing for new sections
 928+ # And a similar thing for new sections
929929 if( $this->section == 'new' && !$this->allowBlankSummary && $wgUser->getOption( 'forceeditsummary' ) ) {
930930 if (trim($this->summary) == '') {
931931 $this->missingSummary = true;

Status & tagging log