Index: trunk/phase3/includes/Article.php |
— | — | @@ -1771,7 +1771,6 @@ |
1772 | 1772 | if ( $cascade ) |
1773 | 1773 | $comment .= "$cascade_description"; |
1774 | 1774 | |
1775 | | - $rowsAffected = false; |
1776 | 1775 | # Update restrictions table |
1777 | 1776 | foreach( $limit as $action => $restrictions ) { |
1778 | 1777 | if ($restrictions != '' ) { |
— | — | @@ -1779,18 +1778,11 @@ |
1780 | 1779 | array( 'pr_page' => $id, 'pr_type' => $action |
1781 | 1780 | , 'pr_level' => $restrictions, 'pr_cascade' => $cascade ? 1 : 0 |
1782 | 1781 | , 'pr_expiry' => $encodedExpiry ), __METHOD__ ); |
1783 | | - if($dbw->affectedRows() != 0) |
1784 | | - $rowsAffected = true; |
1785 | 1782 | } else { |
1786 | 1783 | $dbw->delete( 'page_restrictions', array( 'pr_page' => $id, |
1787 | 1784 | 'pr_type' => $action ), __METHOD__ ); |
1788 | | - if($dbw->affectedRows() != 0) |
1789 | | - $rowsAffected = true; |
1790 | 1785 | } |
1791 | 1786 | } |
1792 | | - if(!$rowsAffected) |
1793 | | - // No change |
1794 | | - return true; |
1795 | 1787 | |
1796 | 1788 | # Insert a null revision |
1797 | 1789 | $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -1658,6 +1658,8 @@ |
1659 | 1659 | |
1660 | 1660 | $this->mRestrictions['edit'] = array(); |
1661 | 1661 | $this->mRestrictions['move'] = array(); |
| 1662 | + $this->mCascadeRestriction = false; |
| 1663 | + $this->mRestrictionsExpiry = Block::decodeExpiry(''); |
1662 | 1664 | |
1663 | 1665 | # Backwards-compatibility: also load the restrictions from the page record (old format). |
1664 | 1666 | |
— | — | @@ -1679,8 +1681,6 @@ |
1680 | 1682 | } |
1681 | 1683 | |
1682 | 1684 | $this->mOldRestrictions = true; |
1683 | | - $this->mCascadeRestriction = false; |
1684 | | - $this->mRestrictionsExpiry = Block::decodeExpiry(''); |
1685 | 1685 | |
1686 | 1686 | } |
1687 | 1687 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -45,6 +45,7 @@ |
46 | 46 | * Make the default filepageexists message accurate |
47 | 47 | * (bug 12988) $wgMinimalPasswordLength no longer breaks create user by email |
48 | 48 | * (bug 13022) Fix upload from URL on PHP 5.0.x |
| 49 | +* (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki |
49 | 50 | |
50 | 51 | === API changes in 1.13 === |
51 | 52 | |