Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | var $mHTMLtitle = '', $mIsarticle = true, $mPrintable = false; |
14 | 14 | var $mSubtitle = '', $mRedirect = '', $mStatusCode; |
15 | 15 | var $mLastModified = '', $mETag = false; |
16 | | - var $mCategoryLinks = array(), $mLanguageLinks = array(); |
| 16 | + var $mCategoryLinks = array(), $mCategories = array(), $mLanguageLinks = array(); |
17 | 17 | |
18 | 18 | var $mScriptLoaderClassList = array(); |
19 | 19 | |
— | — | @@ -664,6 +664,10 @@ |
665 | 665 | return $this->mCategoryLinks; |
666 | 666 | } |
667 | 667 | |
| 668 | + public function getCategories() { |
| 669 | + return $this->mCategories; |
| 670 | + } |
| 671 | + |
668 | 672 | /** |
669 | 673 | * Add an array of categories, with names in the keys |
670 | 674 | */ |
— | — | @@ -713,6 +717,7 @@ |
714 | 718 | if ( array_key_exists( $category, $categories ) ) |
715 | 719 | continue; |
716 | 720 | $text = $wgContLang->convertHtml( $title->getText() ); |
| 721 | + $this->mCategories[] = $title->getText(); |
717 | 722 | $this->mCategoryLinks[$type][] = $sk->link( $title, $text ); |
718 | 723 | } |
719 | 724 | } |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -416,6 +416,7 @@ |
417 | 417 | 'wgFormattedNamespaces' => $wgContLang->getFormattedNamespaces(), |
418 | 418 | 'wgNamespaceIds' => $wgContLang->getNamespaceIds(), |
419 | 419 | 'wgSiteName' => $wgSitename, |
| 420 | + 'wgCategories' => $wgOut->getCategories(), |
420 | 421 | ); |
421 | 422 | if ( $wgContLang->hasVariants() ) { |
422 | 423 | $vars['wgUserVariant'] = $wgContLang->getPreferredVariant(); |