Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/106938
Change subject: Call Linker methods statically
......................................................................
Call Linker methods statically
Change-Id: Ia7b4725f59f335bb8aa90640e44c4795a072e236
---
M RefreshSpecial.body.php
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RefreshSpecial
refs/changes/38/106938/1
diff --git a/RefreshSpecial.body.php b/RefreshSpecial.body.php
index f0c7550..f057581 100644
--- a/RefreshSpecial.body.php
+++ b/RefreshSpecial.body.php
@@ -276,7 +276,7 @@
* On submit
*/
function doSubmit() {
- global $wgOut, $wgUser, $wgRequest;
+ global $wgOut, $wgRequest;
/* guard against an empty array */
$array = $wgRequest->getArray( 'wpSpecial' );
if ( !is_array( $array ) || empty( $array ) || is_null( $array
) ) {
@@ -286,9 +286,8 @@
$wgOut->setSubTitle( wfMsg( 'refreshspecial-choice', wfMsg(
'refreshspecial-refreshing' ) ) );
$this->refreshSpecial();
- $sk = $wgUser->getSkin();
$titleObj = SpecialPage::getTitleFor( 'RefreshSpecial' );
- $link_back = $sk->makeKnownLinkObj( $titleObj, wfMsg(
'refreshspecial-link-back' ) );
+ $link_back = Linker::makeKnownLinkObj( $titleObj, wfMsg(
'refreshspecial-link-back' ) );
$wgOut->addHTML( '<br /><b>' . $link_back . '</b>' );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/106938
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7b4725f59f335bb8aa90640e44c4795a072e236
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RefreshSpecial
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits