Index: trunk/extensions/Wikidata/OmegaWiki/Controller.php |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | $definitionIdAttribute; |
156 | 156 | |
157 | 157 | $definitionId = $keyPath->peek(1)->getAttributeValue($definitionIdAttribute); |
158 | | - $languageId = $keyPath->peek(0)->$language; |
| 158 | + $languageId = $keyPath->peek(0)->language; |
159 | 159 | |
160 | 160 | removeTranslatedText($definitionId, $languageId); |
161 | 161 | } |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | $expressionValue = $record->getAttributeValue($expressionAttribute); |
207 | 207 | |
208 | 208 | if ($this->filterLanguageId == 0) { |
209 | | - $languageId = $expressionValue->$language; |
| 209 | + $languageId = $expressionValue->language; |
210 | 210 | $spelling = $expressionValue->getAttributeValue($spellingAttribute); |
211 | 211 | } |
212 | 212 | else { |