Skip to content

Commit

Permalink
Fix "Field 'perm_addgroupstoself' doesn't have a default value"
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox committed Jul 3, 2019
1 parent 3d23fd6 commit f4f4219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/ManageWikiHooks.php
Expand Up @@ -288,7 +288,10 @@ public static function onCreateWikiStatePrivate( $dbname ) {
'perm_group' => $wgManageWikiPermissionsDefaultPrivateGroup,
'perm_permissions' => json_encode( $defaultarray['permissions'] ),
'perm_addgroups' => json_encode( $defaultarray['ag'] ),
'perm_removegroups' => json_encode( $defaultarray['rg'] )
'perm_removegroups' => json_encode( $defaultarray['rg'] ),
'perm_addgroupstoself' => json_encode( $defaultarray['ags'] ),
'perm_removegroupsfromself' => json_encode( $defaultarray['rgs'] ),
'perm_autopromote' => ( is_null( $defaultarray['autopromote'] ) ) ? null : json_encode( $defaultarray['autopromote'] )
],
__METHOD__
);
Expand Down

0 comments on commit f4f4219

Please sign in to comment.