Index: trunk/phase3/includes/specials/SpecialBrokenRedirects.php |
— | — | @@ -77,8 +77,6 @@ |
78 | 78 | * @return String |
79 | 79 | */ |
80 | 80 | function formatResult( $skin, $result ) { |
81 | | - global $wgUser, $wgLang; |
82 | | - |
83 | 81 | $fromObj = Title::makeTitle( $result->namespace, $result->title ); |
84 | 82 | if ( isset( $result->rd_title ) ) { |
85 | 83 | $toObj = Title::makeTitle( $result->rd_namespace, $result->rd_title ); |
— | — | @@ -93,35 +91,35 @@ |
94 | 92 | |
95 | 93 | // $toObj may very easily be false if the $result list is cached |
96 | 94 | if ( !is_object( $toObj ) ) { |
97 | | - return '<del>' . $skin->link( $fromObj ) . '</del>'; |
| 95 | + return '<del>' . Linker::link( $fromObj ) . '</del>'; |
98 | 96 | } |
99 | 97 | |
100 | | - $from = $skin->linkKnown( |
| 98 | + $from = Linker::linkKnown( |
101 | 99 | $fromObj, |
102 | 100 | null, |
103 | 101 | array(), |
104 | 102 | array( 'redirect' => 'no' ) |
105 | 103 | ); |
106 | 104 | $links = array(); |
107 | | - $links[] = $skin->linkKnown( |
| 105 | + $links[] = Linker::linkKnown( |
108 | 106 | $fromObj, |
109 | 107 | wfMsgHtml( 'brokenredirects-edit' ), |
110 | 108 | array(), |
111 | 109 | array( 'action' => 'edit' ) |
112 | 110 | ); |
113 | | - $to = $skin->link( |
| 111 | + $to = Linker::link( |
114 | 112 | $toObj, |
115 | 113 | null, |
116 | 114 | array(), |
117 | 115 | array(), |
118 | 116 | array( 'broken' ) |
119 | 117 | ); |
120 | | - $arr = $wgLang->getArrow(); |
| 118 | + $arr = $this->getLang()->getArrow(); |
121 | 119 | |
122 | 120 | $out = $from . wfMsg( 'word-separator' ); |
123 | 121 | |
124 | | - if( $wgUser->isAllowed( 'delete' ) ) { |
125 | | - $links[] = $skin->linkKnown( |
| 122 | + if( $this->getUser()->isAllowed( 'delete' ) ) { |
| 123 | + $links[] = Linker::linkKnown( |
126 | 124 | $fromObj, |
127 | 125 | wfMsgHtml( 'brokenredirects-delete' ), |
128 | 126 | array(), |
— | — | @@ -129,7 +127,7 @@ |
130 | 128 | ); |
131 | 129 | } |
132 | 130 | |
133 | | - $out .= wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
| 131 | + $out .= wfMsg( 'parentheses', $this->getLang()->pipeList( $links ) ); |
134 | 132 | $out .= " {$arr} {$to}"; |
135 | 133 | return $out; |
136 | 134 | } |