Index: trunk/phase3/includes/Article.php |
— | — | @@ -1779,18 +1779,11 @@ |
1780 | 1780 | array( 'pr_page' => $id, 'pr_type' => $action |
1781 | 1781 | , 'pr_level' => $restrictions, 'pr_cascade' => $cascade ? 1 : 0 |
1782 | 1782 | , 'pr_expiry' => $encodedExpiry ), __METHOD__ ); |
1783 | | - if($dbw->affectedRows() != 0) |
1784 | | - $rowsAffected = true; |
1785 | 1783 | } else { |
1786 | 1784 | $dbw->delete( 'page_restrictions', array( 'pr_page' => $id, |
1787 | 1785 | 'pr_type' => $action ), __METHOD__ ); |
1788 | | - if($dbw->affectedRows() != 0) |
1789 | | - $rowsAffected = true; |
1790 | 1786 | } |
1791 | 1787 | } |
1792 | | - if(!$rowsAffected) |
1793 | | - // No change |
1794 | | - return true; |
1795 | 1788 | |
1796 | 1789 | # Insert a null revision |
1797 | 1790 | $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -36,6 +36,7 @@ |
37 | 37 | * (bug 10677) Add link to the file description page on the shared repository |
38 | 38 | * (bug 13084) Increase size of source/destination filename fields in upload form |
39 | 39 | * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge |
| 40 | +* (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki |
40 | 41 | |
41 | 42 | === API changes in 1.13 === |
42 | 43 | |