r40905 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40904‎ | r40905 | r40906 >
Date:10:39, 16 September 2008
Author:aaron
Status:old
Tags:
Comment:
whitespace tweaks
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1636,8 +1636,7 @@
16371637 # If we haven't been given an rc_id value, we can't do anything
16381638 $rcid = (int) $wgRequest->getVal('rcid');
16391639 $rc = RecentChange::newFromId($rcid);
1640 - if (is_null($rc))
1641 - {
 1640+ if ( is_null($rc) ) {
16421641 $wgOut->showErrorPage( 'markedaspatrollederror', 'markedaspatrollederrortext' );
16431642 return;
16441643 }
@@ -1647,25 +1646,24 @@
16481647 $return = Title::makeTitle( NS_SPECIAL, $returnto );
16491648
16501649 $errors = $rc->doMarkPatrolled();
1651 - if (in_array(array('rcpatroldisabled'), $errors)) {
 1650+ if ( in_array(array('rcpatroldisabled'), $errors) ) {
16521651 $wgOut->showErrorPage( 'rcpatroldisabled', 'rcpatroldisabledtext' );
16531652 return;
16541653 }
16551654
1656 - if (in_array(array('hookaborted'), $errors)) {
 1655+ if ( in_array(array('hookaborted'), $errors) ) {
16571656 // The hook itself has handled any output
16581657 return;
16591658 }
16601659
1661 - if (in_array(array('markedaspatrollederror-noautopatrol'), $errors)) {
 1660+ if ( in_array(array('markedaspatrollederror-noautopatrol'), $errors) ) {
16621661 $wgOut->setPageTitle( wfMsg( 'markedaspatrollederror' ) );
16631662 $wgOut->addWikiMsg( 'markedaspatrollederror-noautopatrol' );
16641663 $wgOut->returnToMain( false, $return );
16651664 return;
16661665 }
16671666
1668 - if (!empty($errors))
1669 - {
 1667+ if ( !empty($errors) ) {
16701668 $wgOut->showPermissionsErrorPage( $errors );
16711669 return;
16721670 }