Index: trunk/phase3/includes/Article.php |
— | — | @@ -1771,6 +1771,7 @@ |
1772 | 1772 | if ( $cascade ) |
1773 | 1773 | $comment .= "$cascade_description"; |
1774 | 1774 | |
| 1775 | + $rowsAffected = false; |
1775 | 1776 | # Update restrictions table |
1776 | 1777 | foreach( $limit as $action => $restrictions ) { |
1777 | 1778 | if ($restrictions != '' ) { |
— | — | @@ -1778,11 +1779,18 @@ |
1779 | 1780 | array( 'pr_page' => $id, 'pr_type' => $action |
1780 | 1781 | , 'pr_level' => $restrictions, 'pr_cascade' => $cascade ? 1 : 0 |
1781 | 1782 | , 'pr_expiry' => $encodedExpiry ), __METHOD__ ); |
| 1783 | + if($dbw->affectedRows() != 0) |
| 1784 | + $rowsAffected = true; |
1782 | 1785 | } else { |
1783 | 1786 | $dbw->delete( 'page_restrictions', array( 'pr_page' => $id, |
1784 | 1787 | 'pr_type' => $action ), __METHOD__ ); |
| 1788 | + if($dbw->affectedRows() != 0) |
| 1789 | + $rowsAffected = true; |
1785 | 1790 | } |
1786 | 1791 | } |
| 1792 | + if(!$rowsAffected) |
| 1793 | + // No change |
| 1794 | + return true; |
1787 | 1795 | |
1788 | 1796 | # Insert a null revision |
1789 | 1797 | $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -39,7 +39,6 @@ |
40 | 40 | * (bug 10677) Add link to the file description page on the shared repository |
41 | 41 | * (bug 13084) Increase size of source/destination filename fields in upload form |
42 | 42 | * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge |
43 | | -* (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki |
44 | 43 | * (bug 13140) Show parent categories in category namespace |
45 | 44 | * (bug 13149) Correctly format 'fileexists' message on Upload page. |
46 | 45 | * Make filepageexists accurate. |