Index: trunk/phase3/includes/specials/SpecialListredirects.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | function formatResult( $skin, $result ) { |
100 | 100 | # Make a link to the redirect itself |
101 | 101 | $rd_title = Title::makeTitle( $result->namespace, $result->title ); |
102 | | - $rd_link = $skin->link( |
| 102 | + $rd_link = Linker::link( |
103 | 103 | $rd_title, |
104 | 104 | null, |
105 | 105 | array(), |
— | — | @@ -108,10 +108,10 @@ |
109 | 109 | # Find out where the redirect leads |
110 | 110 | $target = $this->getRedirectTarget( $result ); |
111 | 111 | if( $target ) { |
112 | | - global $wgLang; |
113 | 112 | # Make a link to the destination page |
114 | | - $arr = $wgLang->getArrow() . $wgLang->getDirMark(); |
115 | | - $targetLink = $skin->link( $target ); |
| 113 | + $lang = $this->getLang(); |
| 114 | + $arr = $lang->getArrow() . $lang->getDirMark(); |
| 115 | + $targetLink = Linker::link( $target ); |
116 | 116 | return "$rd_link $arr $targetLink"; |
117 | 117 | } else { |
118 | 118 | return "<del>$rd_link</del>"; |