Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -410,8 +410,7 @@ |
411 | 411 | } |
412 | 412 | |
413 | 413 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
414 | | - global $wgUser; |
415 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->rc_comment, $title ); |
| 414 | + $vals['parsedcomment'] = Linker::formatComment( $row->rc_comment, $title ); |
416 | 415 | } |
417 | 416 | |
418 | 417 | if ( $this->fld_redirect ) { |
Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | |
218 | 218 | if ( !is_null( $params['summary'] ) ) { |
219 | 219 | $result_array['parsedsummary'] = array(); |
220 | | - $result->setContent( $result_array['parsedsummary'], $wgUser->getSkin()->formatComment( $params['summary'], $titleObj ) ); |
| 220 | + $result->setContent( $result_array['parsedsummary'], Linker::formatComment( $params['summary'], $titleObj ) ); |
221 | 221 | } |
222 | 222 | |
223 | 223 | if ( isset( $prop['langlinks'] ) ) { |
Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | $title = Title::makeTitle( $row->ar_namespace, $row->ar_title ); |
232 | 232 | |
233 | 233 | if ( $fld_parsedcomment ) { |
234 | | - $rev['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->ar_comment, $title ); |
| 234 | + $rev['parsedcomment'] = Linker::formatComment( $row->ar_comment, $title ); |
235 | 235 | } |
236 | 236 | if ( $fld_minor && $row->ar_minor_edit == 1 ) { |
237 | 237 | $rev['minor'] = ''; |
Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | if ( $fld_description ) { |
168 | 168 | $file['description'] = $row->fa_description; |
169 | 169 | if ( isset( $prop['parseddescription'] ) ) { |
170 | | - $file['parseddescription'] = $wgUser->getSkin()->formatComment( |
| 170 | + $file['parseddescription'] = Linker::formatComment( |
171 | 171 | $row->fa_description, $title ); |
172 | 172 | } |
173 | 173 | } |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -323,8 +323,7 @@ |
324 | 324 | } |
325 | 325 | |
326 | 326 | if ( $this->fld_parsedcomment ) { |
327 | | - global $wgUser; |
328 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->log_comment, $title ); |
| 327 | + $vals['parsedcomment'] = Linker::formatComment( $row->log_comment, $title ); |
329 | 328 | } |
330 | 329 | } |
331 | 330 | } |
Index: trunk/phase3/includes/api/ApiQueryProtectedTitles.php |
— | — | @@ -112,8 +112,7 @@ |
113 | 113 | } |
114 | 114 | |
115 | 115 | if ( isset( $prop['parsedcomment'] ) ) { |
116 | | - global $wgUser; |
117 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->pt_reason, $title ); |
| 116 | + $vals['parsedcomment'] = Linker::formatComment( $row->pt_reason, $title ); |
118 | 117 | } |
119 | 118 | |
120 | 119 | if ( isset( $prop['expiry'] ) ) { |
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -318,8 +318,7 @@ |
319 | 319 | $vals['commenthidden'] = ''; |
320 | 320 | } else { |
321 | 321 | if ( $pcomment ) { |
322 | | - global $wgUser; |
323 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( |
| 322 | + $vals['parsedcomment'] = Linker::formatComment( |
324 | 323 | $file->getDescription(), $file->getTitle() ); |
325 | 324 | } |
326 | 325 | if ( $comment ) { |
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | } |
297 | 297 | |
298 | 298 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
299 | | - $vals['parsedcomment'] = $this->getSkin()->formatComment( $row->rc_comment, $title ); |
| 299 | + $vals['parsedcomment'] = Linker::formatComment( $row->rc_comment, $title ); |
300 | 300 | } |
301 | 301 | |
302 | 302 | if ( $this->fld_loginfo && $row->rc_type == RC_LOG ) { |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -424,8 +424,7 @@ |
425 | 425 | } |
426 | 426 | |
427 | 427 | if ( $this->fld_parsedcomment ) { |
428 | | - global $wgUser; |
429 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $comment, $title ); |
| 428 | + $vals['parsedcomment'] = Linker::formatComment( $comment, $title ); |
430 | 429 | } |
431 | 430 | } |
432 | 431 | } |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -321,8 +321,7 @@ |
322 | 322 | } |
323 | 323 | |
324 | 324 | if ( $this->fld_parsedcomment ) { |
325 | | - global $wgUser; |
326 | | - $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->rev_comment, $title ); |
| 325 | + $vals['parsedcomment'] = Linker::formatComment( $row->rev_comment, $title ); |
327 | 326 | } |
328 | 327 | } |
329 | 328 | } |