Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -42,21 +42,21 @@ |
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
46 | | - static function OutputPageBeforeHTML( &$parserOutput , &$text ) { |
| 46 | + static function OutputPageBeforeHTML( &$out, &$text ) { |
47 | 47 | $dw = new self(); |
48 | | - $dw->addMatchedText( $parserOutput, $text ); |
| 48 | + $dw->addMatchedText( $out, $text ); |
49 | 49 | return true; |
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Hook function called with &match=lang |
54 | 54 | * Transform $text into a bilingual version |
55 | | - * @param $parserOutput ParserOutput |
| 55 | + * @param $out OutputPage |
56 | 56 | * @param $text |
57 | 57 | */ |
58 | | - function addMatchedText ( &$parserOutput , &$text ) { |
| 58 | + function addMatchedText( &$out, &$text ) { |
59 | 59 | |
60 | | - global $wgContLang, $wgRequest, $wgLang, $wgContLanguageCode, $wgTitle; |
| 60 | + global $wgContLang, $wgRequest, $wgLang, $wgContLanguageCode; |
61 | 61 | |
62 | 62 | $match_request = $wgRequest->getText( 'match' ); |
63 | 63 | if ( $match_request === '' ) { |
— | — | @@ -64,12 +64,12 @@ |
65 | 65 | } |
66 | 66 | $this->addMatchingTags ( $text, $match_request ); |
67 | 67 | |
68 | | - foreach( $parserOutput->mLanguageLinks as $l ) { |
| 68 | + foreach( $out->mLanguageLinks as $l ) { |
69 | 69 | $nt = Title::newFromText( $l ); |
70 | 70 | $iw = $nt->getInterwiki(); |
71 | 71 | if( $iw === $match_request ){ |
72 | 72 | $url = $nt->getFullURL(); |
73 | | - $myURL = $wgTitle -> getLocalURL() ; |
| 73 | + $myURL = $out->getTitle()->getLocalURL(); |
74 | 74 | $languageName = $wgContLang->getLanguageName( $nt->getInterwiki() ); |
75 | 75 | $myLanguage = $wgLang->getLanguageName( $wgContLanguageCode ); |
76 | 76 | |