summaryrefslogtreecommitdiff
path: root/maintenance/updateRestrictions.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
commit086ae52d12011746a75f5588e877347bc0457352 (patch)
treee73263c7a29d0f94fafb874562610e16eb292ba8 /maintenance/updateRestrictions.php
parent749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff)
Update auf MediaWiki 1.12.0
Diffstat (limited to 'maintenance/updateRestrictions.php')
-rw-r--r--maintenance/updateRestrictions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php
index 9503d0b7..c8cebfc4 100644
--- a/maintenance/updateRestrictions.php
+++ b/maintenance/updateRestrictions.php
@@ -56,7 +56,7 @@ function migrate_page_restrictions( $db ) {
# We use insert() and not replace() as Article.php replaces
# page_restrictions with '' when protected in the restrictions table
if ( count( $batch ) ) {
- $db->insert( 'page_restrictions', $batch, __FUNCTION__ );
+ $db->insert( 'page_restrictions', $batch, __FUNCTION__, array( 'IGNORE' ) );
}
$blockStart += BATCH_SIZE;
$blockEnd += BATCH_SIZE;