// This won't actually find all flags, just the ones in use. Can't really be helped,
// other than adding the core flags here.
// This won't actually find all flags, just the ones in use. Can't really be helped,
// other than adding the core flags here.
foreach ( $wgPasswordPolicy['policies'] as $group => $checks ) {
foreach ( $checks as $check => $settings ) {
if ( is_array( $settings ) ) {
foreach ( $wgPasswordPolicy['policies'] as $group => $checks ) {
foreach ( $checks as $check => $settings ) {
if ( is_array( $settings ) ) {