Index: trunk/extensions/GeoData/CoordinatesParserFunction.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | | - $this->addCategory( wfMessage( 'geodata-broken-tags-category' ) ); |
| 74 | + $parser->addTrackingCategory( 'geodata-broken-tags-category' ); |
75 | 75 | $errorText = $this->errorText( $status ); |
76 | 76 | if ( $errorText == '<>' ) { |
77 | 77 | // Error that doesn't require a message, |
— | — | @@ -184,18 +184,6 @@ |
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | | - * Adds a category to the output |
189 | | - * |
190 | | - * @param String|Message $name: Category name |
191 | | - */ |
192 | | - private function addCategory( $name ) { |
193 | | - if ( $name instanceof Message ) { |
194 | | - $name = $name->inContentLanguage()->text(); |
195 | | - } |
196 | | - $this->output->addCategory( $name, $this->parser->getTitle()->getText() ); |
197 | | - } |
198 | | - |
199 | | - /** |
200 | 188 | * Returns wikitext of status error message in content language |
201 | 189 | * |
202 | 190 | * @param Status $s |