Remove unused variable and update code comment per r96888.
authorRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Sep 2011 20:08:23 +0000 (20:08 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Sep 2011 20:08:23 +0000 (20:08 +0000)
includes/CategoryPage.php

index c833886..8e7ee64 100644 (file)
@@ -174,10 +174,8 @@ class CategoryViewer {
                        $r = wfMsgExt( 'category-empty', array( 'parse' ) );
                }
 
-               $pageLang = $this->title->getPageLanguage();
                $langAttribs = array( 'lang' => $wgLang->getCode(), 'dir' => $wgLang->getDir() );
-               # close the previous div, show the headings in user language,
-               # then open a new div with the page content language again
+               # put a div around the headings which are in the user language
                $r = Html::openElement( 'div', $langAttribs ) . $r . '</div>';
 
                wfProfileOut( __METHOD__ );