* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @since 1.22
*/
+use MediaWiki\MediaWikiServices;
/**
* This class formats patrol log entries.
'oldid' => $oldid,
'diff' => 'prev'
];
- $revlink = Linker::link( $target, htmlspecialchars( $revision ), [], $query );
+ $revlink = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink(
+ $target, $revision, [], $query );
} else {
$revlink = htmlspecialchars( $revision );
}
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @since 1.26
*/
+use MediaWiki\MediaWikiServices;
/**
* This class formats protect log entries.
}
public function getActionLinks() {
+ $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
$subtype = $this->entry->getSubtype();
if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden
|| $subtype === 'move_prot' // the move log entry has the right action link
// Show history link for all changes after the protection
$title = $this->entry->getTarget();
$links = [
- Linker::link( $title,
- $this->msg( 'hist' )->escaped(),
+ $linkRenderer->makeLink( $title,
+ $this->msg( 'hist' )->text(),
[],
[
'action' => 'history',
// Show change protection link
if ( $this->context->getUser()->isAllowed( 'protect' ) ) {
- $links[] = Linker::linkKnown(
+ $links[] = $linkRenderer->makeKnownLink(
$title,
- $this->msg( 'protect_change' )->escaped(),
+ $this->msg( 'protect_change' )->text(),
[],
[ 'action' => 'protect' ]
);