Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -387,14 +387,10 @@ |
388 | 388 | |
389 | 389 | $groupId = $handle->getGroup()->getId(); |
390 | 390 | $priorityForce = TranslateMetadata::get( $groupId, 'priorityforce' ); |
391 | | - if ( !$priorityForce ) { |
392 | | - return true; |
393 | | - } |
394 | | - |
395 | 391 | $priorityLangs = TranslateMetadata::get( $groupId, 'prioritylangs' ); |
396 | 392 | $priorityReason = TranslateMetadata::get( $groupId, 'priorityreason' ); |
397 | 393 | $filter = array_flip( explode( ',', $priorityLangs ) ); |
398 | | - if ( !isset( $filter[$handle->getCode()] ) ) { |
| 394 | + if ( !isset( $filter[$handle->getCode()] ) && $priorityForce === 'on' ) { |
399 | 395 | $result = array( 'tpt-translation-restricted', $priorityReason ); |
400 | 396 | return false; |
401 | 397 | } |
Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -404,7 +404,8 @@ |
405 | 405 | /// Hook: Translate:MessageGroupStats:isIncluded |
406 | 406 | public static function hideRestrictedFromStats( $id, $code ) { |
407 | 407 | $filterLangs = TranslateMetadata::get( $id, 'prioritylangs' ); |
408 | | - if ( strlen( $filterLangs ) === 0 ) { |
| 408 | + $priorityForce = TranslateMetadata::get( $id, 'priorityforce' ); |
| 409 | + if ( strlen( $filterLangs ) === 0 || $priorityForce === 'off' ) { |
409 | 410 | // No restrictions, keep everything |
410 | 411 | return true; |
411 | 412 | } |