Index: trunk/phase3/includes/Article.php |
— | — | @@ -1766,9 +1766,6 @@ |
1767 | 1767 | if ( $cascade ) |
1768 | 1768 | $comment .= "$cascade_description"; |
1769 | 1769 | |
1770 | | - $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
1771 | | - $nullRevId = $nullRevision->insertOn( $dbw ); |
1772 | | - |
1773 | 1770 | # Update restrictions table |
1774 | 1771 | foreach( $limit as $action => $restrictions ) { |
1775 | 1772 | if ($restrictions != '' ) { |
— | — | @@ -1781,7 +1778,14 @@ |
1782 | 1779 | 'pr_type' => $action ), __METHOD__ ); |
1783 | 1780 | } |
1784 | 1781 | } |
| 1782 | + if($dbw->affectedRows() == 0) |
| 1783 | + // No change |
| 1784 | + return true; |
1785 | 1785 | |
| 1786 | + # Insert a null revision |
| 1787 | + $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
| 1788 | + $nullRevId = $nullRevision->insertOn( $dbw ); |
| 1789 | + |
1786 | 1790 | # Update page record |
1787 | 1791 | $dbw->update( 'page', |
1788 | 1792 | array( /* SET */ |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -136,10 +136,6 @@ |
137 | 137 | * (bug 10049) Prefix index search and namespaces in Special:Withoutinterwiki |
138 | 138 | * (bug 12668) Support for custom iPhone bookmark icon via $wgAppleTouchIcon |
139 | 139 | * Add option to include templates in Special:Export. |
140 | | -* (bug 12655) Added $wgUserEmailUseReplyTo config option to put sender |
141 | | - address in Reply-To instead of From for user-to-user emails. |
142 | | - This protects against SPF problems and privacy-leaking bounce messages |
143 | | - when using mailers that set the envelope sender to the From header value. |
144 | 140 | |
145 | 141 | |
146 | 142 | === Bug fixes in 1.12 === |
— | — | @@ -326,6 +322,7 @@ |
327 | 323 | * Creating a site with a name containing '#' is no longer permitted, since the |
328 | 324 | name will not work (but $wgSiteName is not checked if manually set). |
329 | 325 | * (bug 12695) Suppress dvips verbiage from web server error log |
| 326 | +* (bug 12716) Unprotecting a non-protected page leaves a log entry |
330 | 327 | |
331 | 328 | |
332 | 329 | == Parser changes in 1.12 == |