Index: trunk/phase3/includes/Article.php |
— | — | @@ -1636,8 +1636,7 @@ |
1637 | 1637 | # If we haven't been given an rc_id value, we can't do anything |
1638 | 1638 | $rcid = (int) $wgRequest->getVal('rcid'); |
1639 | 1639 | $rc = RecentChange::newFromId($rcid); |
1640 | | - if (is_null($rc)) |
1641 | | - { |
| 1640 | + if ( is_null($rc) ) { |
1642 | 1641 | $wgOut->showErrorPage( 'markedaspatrollederror', 'markedaspatrollederrortext' ); |
1643 | 1642 | return; |
1644 | 1643 | } |
— | — | @@ -1647,25 +1646,24 @@ |
1648 | 1647 | $return = Title::makeTitle( NS_SPECIAL, $returnto ); |
1649 | 1648 | |
1650 | 1649 | $errors = $rc->doMarkPatrolled(); |
1651 | | - if (in_array(array('rcpatroldisabled'), $errors)) { |
| 1650 | + if ( in_array(array('rcpatroldisabled'), $errors) ) { |
1652 | 1651 | $wgOut->showErrorPage( 'rcpatroldisabled', 'rcpatroldisabledtext' ); |
1653 | 1652 | return; |
1654 | 1653 | } |
1655 | 1654 | |
1656 | | - if (in_array(array('hookaborted'), $errors)) { |
| 1655 | + if ( in_array(array('hookaborted'), $errors) ) { |
1657 | 1656 | // The hook itself has handled any output |
1658 | 1657 | return; |
1659 | 1658 | } |
1660 | 1659 | |
1661 | | - if (in_array(array('markedaspatrollederror-noautopatrol'), $errors)) { |
| 1660 | + if ( in_array(array('markedaspatrollederror-noautopatrol'), $errors) ) { |
1662 | 1661 | $wgOut->setPageTitle( wfMsg( 'markedaspatrollederror' ) ); |
1663 | 1662 | $wgOut->addWikiMsg( 'markedaspatrollederror-noautopatrol' ); |
1664 | 1663 | $wgOut->returnToMain( false, $return ); |
1665 | 1664 | return; |
1666 | 1665 | } |
1667 | 1666 | |
1668 | | - if (!empty($errors)) |
1669 | | - { |
| 1667 | + if ( !empty($errors) ) { |
1670 | 1668 | $wgOut->showPermissionsErrorPage( $errors ); |
1671 | 1669 | return; |
1672 | 1670 | } |