Index: trunk/extensions/Babel/Babel.class.php |
— | — | @@ -284,12 +284,14 @@ |
285 | 285 | |
286 | 286 | $r = ''; |
287 | 287 | |
288 | | - if ( $wgBabelMainCategory !== false && $wgBabelCategoryNames[$level] !== false ) { |
| 288 | + # Add main category |
| 289 | + if ( $wgBabelMainCategory !== false ) { |
289 | 290 | $category = self::mReplaceCategoryVariables( $wgBabelMainCategory, $code ); |
290 | 291 | $r .= "[[Category:$category|$level]]"; |
291 | 292 | BabelAutoCreate::create( $category, $code ); |
292 | 293 | } |
293 | 294 | |
| 295 | + # Add level category |
294 | 296 | if ( $wgBabelCategoryNames[$level] !== false ) { |
295 | 297 | $category = self::mReplaceCategoryVariables( $wgBabelCategoryNames[$level], $code ); |
296 | 298 | $r .= "[[Category:$category]]"; |