Index: trunk/phase3/includes/Message.php |
— | — | @@ -158,7 +158,9 @@ |
159 | 159 | if( $lang instanceof Language ){ |
160 | 160 | $this->language = $lang; |
161 | 161 | } elseif ( is_string( $lang ) ) { |
162 | | - $this->language = Language::factory( $lang ); |
| 162 | + if( $this->language->getCode() != $lang ) { |
| 163 | + $this->language = Language::factory( $lang ); |
| 164 | + } |
163 | 165 | } else { |
164 | 166 | $type = gettype( $lang ); |
165 | 167 | throw new MWException( __METHOD__ . " must be " |