Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -141,11 +141,13 @@ |
142 | 142 | $description = $status . $description; |
143 | 143 | } |
144 | 144 | |
145 | | - $priorityLangs = TranslateMetadata::get( $this->group->getId(), 'prioritylangs' ); |
146 | | - if ( $priorityLangs !== false && !isset( $priorityLangs[$this->options['language']] ) ) { |
147 | | - $priorityLangs = array_flip( explode( ',', $priorityLangs ) ); |
148 | | - $priorityForce = TranslateMetadata::get( $this->group->getId(), 'priorityforce' ); |
149 | | - $priorityReason = TranslateMetadata::get( $this->group->getId(), 'priorityreason' ); |
| 145 | + $groupId = $this->group->getId(); |
| 146 | + // PHP is such an awesome language |
| 147 | + $priorityLangs = TranslateMetadata::get( $groupId, 'prioritylangs' ); |
| 148 | + $priorityLangs = array_flip( array_filter( explode( ',', $priorityLangs ) ) ); |
| 149 | + if ( count( $priorityLangs) && !isset( $priorityLangs[$this->options['language']] ) ) { |
| 150 | + $priorityForce = TranslateMetadata::get( $groupId, 'priorityforce' ); |
| 151 | + $priorityReason = TranslateMetadata::get( $groupId, 'priorityreason' ); |
150 | 152 | if ( $priorityForce === 'on' ) { |
151 | 153 | // Hide table |
152 | 154 | $this->paging['count'] = 0; |