Index: trunk/phase3/includes/revisiondelete/RevisionDeleter.php |
— | — | @@ -113,11 +113,10 @@ |
114 | 114 | * |
115 | 115 | * @param $title Title |
116 | 116 | * @param $paramArray Array |
117 | | - * @param $skin Skin |
118 | 117 | * @param $messages |
119 | 118 | * @return String |
120 | 119 | */ |
121 | | - public static function getLogLinks( $title, $paramArray, $skin, $messages ) { |
| 120 | + public static function getLogLinks( $title, $paramArray, $messages ) { |
122 | 121 | global $wgLang; |
123 | 122 | |
124 | 123 | if ( count( $paramArray ) >= 2 ) { |
— | — | @@ -132,19 +131,18 @@ |
133 | 132 | if ( count( $Ids ) == 1 ) { |
134 | 133 | // Live revision diffs... |
135 | 134 | if ( in_array( $key, array( 'oldid', 'revision' ) ) ) { |
136 | | - $revert[] = $skin->link( |
| 135 | + $revert[] = Linker::linkKnown( |
137 | 136 | $title, |
138 | 137 | $messages['diff'], |
139 | 138 | array(), |
140 | 139 | array( |
141 | 140 | 'diff' => intval( $Ids[0] ), |
142 | 141 | 'unhide' => 1 |
143 | | - ), |
144 | | - array( 'known', 'noclasses' ) |
| 142 | + ) |
145 | 143 | ); |
146 | 144 | // Deleted revision diffs... |
147 | 145 | } elseif ( in_array( $key, array( 'artimestamp','archive' ) ) ) { |
148 | | - $revert[] = $skin->link( |
| 146 | + $revert[] = Linker::linkKnown( |
149 | 147 | SpecialPage::getTitleFor( 'Undelete' ), |
150 | 148 | $messages['diff'], |
151 | 149 | array(), |
— | — | @@ -152,14 +150,13 @@ |
153 | 151 | 'target' => $title->getPrefixedDBKey(), |
154 | 152 | 'diff' => 'prev', |
155 | 153 | 'timestamp' => $Ids[0] |
156 | | - ), |
157 | | - array( 'known', 'noclasses' ) |
| 154 | + ) |
158 | 155 | ); |
159 | 156 | } |
160 | 157 | } |
161 | 158 | |
162 | 159 | // View/modify link... |
163 | | - $revert[] = $skin->link( |
| 160 | + $revert[] = Linker::linkKnown( |
164 | 161 | SpecialPage::getTitleFor( 'Revisiondelete' ), |
165 | 162 | $messages['revdel-restore'], |
166 | 163 | array(), |
— | — | @@ -167,8 +164,7 @@ |
168 | 165 | 'target' => $title->getPrefixedText(), |
169 | 166 | 'type' => $key, |
170 | 167 | 'ids' => implode(',', $Ids), |
171 | | - ), |
172 | | - array( 'known', 'noclasses' ) |
| 168 | + ) |
173 | 169 | ); |
174 | 170 | |
175 | 171 | // Pipe links |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -466,7 +466,7 @@ |
467 | 467 | // If an edit was hidden from a page give a review link to the history |
468 | 468 | } elseif( self::typeAction( $row, array( 'delete', 'suppress' ), 'revision', 'deletedhistory' ) ) { |
469 | 469 | $revert = RevisionDeleter::getLogLinks( $title, $paramArray, |
470 | | - $this->skin, $this->message ); |
| 470 | + $this->message ); |
471 | 471 | // Hidden log items, give review link |
472 | 472 | } elseif( self::typeAction( $row, array( 'delete', 'suppress' ), 'event', 'deletedhistory' ) ) { |
473 | 473 | if( count($paramArray) >= 1 ) { |