aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/updateRestrictions.php
diff options
context:
space:
mode:
authorAaron Schulz <aaron@users.mediawiki.org>2007-04-23 19:50:10 +0000
committerAaron Schulz <aaron@users.mediawiki.org>2007-04-23 19:50:10 +0000
commit215874c4895f8df3f7a318526b138e735456040f (patch)
treedaf131f33526da33760b33b100d9619cb9429489 /maintenance/updateRestrictions.php
parentf31eb18a7ee90b132cb3ecd5d264966c8118a365 (diff)
downloadmediawikicore-215874c4895f8df3f7a318526b138e735456040f.tar.gz
mediawikicore-215874c4895f8df3f7a318526b138e735456040f.zip
*Do not convert to arrays
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21505
Diffstat (limited to 'maintenance/updateRestrictions.php')
-rw-r--r--maintenance/updateRestrictions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php
index f93a3fe783f3..6c8ffb5e496e 100644
--- a/maintenance/updateRestrictions.php
+++ b/maintenance/updateRestrictions.php
@@ -36,10 +36,10 @@ function migrate_page_restrictions( $db ) {
$temp = explode( '=', trim( $restrict ) );
if(count($temp) == 1) {
// old old format should be treated as edit/move restriction
- $oldRestrictions["edit"] = explode( ',', trim( $temp[0] ) );
- $oldRestrictions["move"] = explode( ',', trim( $temp[0] ) );
+ $oldRestrictions["edit"] = trim( $temp[0] );
+ $oldRestrictions["move"] = trim( $temp[0] );
} else {
- $oldRestrictions[$temp[0]] = explode( ',', trim( $temp[1] ) );
+ $oldRestrictions[$temp[0]] = trim( $temp[1] );
}
}
# Update restrictions table