Follow-up r90334 and r90337: made DifferenceEngine::addHeader() non-static to be...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 29 Jun 2011 10:51:15 +0000 (10:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 29 Jun 2011 10:51:15 +0000 (10:51 +0000)
includes/diff/DifferenceEngine.php

index 5428477..4e8194a 100644 (file)
@@ -935,13 +935,13 @@ CONTROL;
         *
         * @return string
         */
-       static function addHeader( $diff, $otitle, $ntitle, $multi = '', $notice = '' ) {
-               global $wgBetterDirectionality, $wgTitle;
+       function addHeader( $diff, $otitle, $ntitle, $multi = '', $notice = '' ) {
+               global $wgBetterDirectionality;
                $tableClass = 'diff';
                if( $wgBetterDirectionality ) {
                        // shared.css sets diff in interface language/dir,
                        // but the actual content should be in the page language/dir
-                       $pageLang = $wgTitle->getPageLanguage();
+                       $pageLang = $this->mTitle->getPageLanguage();
                        $tableClass .= ' diff-contentalign-' . htmlspecialchars( $pageLang->alignStart() );
                }
                $header = "<table class='$tableClass'>";