Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -935,13 +935,13 @@ |
936 | 936 | * |
937 | 937 | * @return string |
938 | 938 | */ |
939 | | - static function addHeader( $diff, $otitle, $ntitle, $multi = '', $notice = '' ) { |
940 | | - global $wgBetterDirectionality, $wgTitle; |
| 939 | + function addHeader( $diff, $otitle, $ntitle, $multi = '', $notice = '' ) { |
| 940 | + global $wgBetterDirectionality; |
941 | 941 | $tableClass = 'diff'; |
942 | 942 | if( $wgBetterDirectionality ) { |
943 | 943 | // shared.css sets diff in interface language/dir, |
944 | 944 | // but the actual content should be in the page language/dir |
945 | | - $pageLang = $wgTitle->getPageLanguage(); |
| 945 | + $pageLang = $this->mTitle->getPageLanguage(); |
946 | 946 | $tableClass .= ' diff-contentalign-' . htmlspecialchars( $pageLang->alignStart() ); |
947 | 947 | } |
948 | 948 | $header = "<table class='$tableClass'>"; |