Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/106921
Change subject: Call Linker methods statically ...................................................................... Call Linker methods statically Change-Id: I91ede4c4ffb841da9a4f9cc212e67982c94ae6ab --- M includes/main/Base.php 1 file changed, 3 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll refs/changes/21/106921/1 diff --git a/includes/main/Base.php b/includes/main/Base.php index 046aff3..d10d5e6 100644 --- a/includes/main/Base.php +++ b/includes/main/Base.php @@ -93,15 +93,14 @@ * a link target, and the link text. */ function setSubtitle( /*...*/ ) { - global $wgUser, $wgOut; - $skin = $wgUser->getSkin(); + global $wgOut; $title = $this->getPageTitle(); - $subtitle = '< ' . $skin->linkKnown( $title, htmlspecialchars( $title->getText() ) ); + $subtitle = '< ' . Linker::linkKnown( $title, htmlspecialchars( $title->getText() ) ); $pipe = wfMsg( 'pipe-separator' ); $links = func_get_args(); foreach ( $links as $link ) { list( $title, $text ) = $link; - $subtitle .= $pipe . $skin->linkKnown( $title, htmlspecialchars( $text ) ); + $subtitle .= $pipe . Linker::linkKnown( $title, htmlspecialchars( $text ) ); } $wgOut->setSubtitle( $subtitle ); } -- To view, visit https://gerrit.wikimedia.org/r/106921 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I91ede4c4ffb841da9a4f9cc212e67982c94ae6ab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SecurePoll Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits