(bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki
authorRotem Liss <rotem@users.mediawiki.org>
Mon, 25 Feb 2008 06:42:12 +0000 (06:42 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Mon, 25 Feb 2008 06:42:12 +0000 (06:42 +0000)
RELEASE-NOTES
includes/Article.php

index d23a305..78a3dd4 100644 (file)
@@ -36,6 +36,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 10677) Add link to the file description page on the shared repository
 * (bug 13084) Increase size of source/destination filename fields in upload form
 * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge
+* (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki
 
 === API changes in 1.13 ===
 
index 0544db7..12e174c 100644 (file)
@@ -1779,18 +1779,11 @@ class Article {
                                                        array( 'pr_page' => $id, 'pr_type' => $action
                                                                , 'pr_level' => $restrictions, 'pr_cascade' => $cascade ? 1 : 0
                                                                , 'pr_expiry' => $encodedExpiry ), __METHOD__  );
-                                               if($dbw->affectedRows() != 0)
-                                                       $rowsAffected = true;
                                        } else {
                                                $dbw->delete( 'page_restrictions', array( 'pr_page' => $id,
                                                        'pr_type' => $action ), __METHOD__ );
-                                               if($dbw->affectedRows() != 0)
-                                                       $rowsAffected = true;
                                        }
                                }
-                               if(!$rowsAffected)
-                                       // No change
-                                       return true;
 
                                # Insert a null revision
                                $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true );