*Do not convert to arrays
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Apr 2007 19:50:10 +0000 (19:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Apr 2007 19:50:10 +0000 (19:50 +0000)
maintenance/updateRestrictions.php

index f93a3fe..6c8ffb5 100644 (file)
@@ -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