function view() {
global $wgUser, $wgOut, $wgRequest, $wgOnlySysopsCanPatrol, $wgLang;
global $wgLinkCache, $IP, $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol;
- global $wgEnotif;
+ global $wgEnotif, $wgParser;
$sk = $wgUser->getSkin();
$fname = 'Article::view';
$wgOut->addHTML( '<img valign="center" src="'.$imageUrl.'" alt="#REDIRECT" />' .
'<span class="redirectText">'.$link.'</span>' );
-
+
+ $parseout = $wgParser->parse($text, $this->mTitle, ParserOptions::newFromUser($wgUser));
+ $catlinks = $parseout->getCategoryLinks();
+ $wgOut->addCategoryLinks($catlinks);
+ $skin = $wgUser->getSkin();
+ #$wgOut->addHTML($skin->getCategoryLinks());
} else if ( $pcache ) {
# Display content and save to parser cache
$wgOut->addPrimaryWikiText( $text, $this );
array( 'page_title', 'page_namespace', 'cl_sortkey' ),
array( $pageCondition,
'cl_from = page_id',
- 'cl_to' => $this->mTitle->getDBKey(),
- 'page_is_redirect' => 0),
+ 'cl_to' => $this->mTitle->getDBKey()),
+ #'page_is_redirect' => 0),
#+ $pageCondition,
$fname,
array( 'ORDER BY' => $flip ? 'cl_sortkey DESC' : 'cl_sortkey',