From 3d63f7a05b1f1ddd145cfb02c7fe3b279aa129ce Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Mon, 25 Feb 2008 06:42:12 +0000 Subject: [PATCH] (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki --- RELEASE-NOTES | 1 + includes/Article.php | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d23a305a8d..78a3dd4d13 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index 0544db7d02..12e174c9f7 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ); -- 2.20.1