Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/106928
Change subject: Call Linker methods statically
......................................................................
Call Linker methods statically
Change-Id: Ib66bee38af2164669f2414f3bfa4d7c26eebe694
---
M MassEditRegex.class.php
1 file changed, 2 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MassEditRegex
refs/changes/28/106928/1
diff --git a/MassEditRegex.class.php b/MassEditRegex.class.php
index ccf5950..d2f0563 100644
--- a/MassEditRegex.class.php
+++ b/MassEditRegex.class.php
@@ -30,7 +30,6 @@
private $aMatch; ///< $strMatch exploded into array
private $aReplace; ///< $strReplace exploded into array
private $strSummary; ///< Edit summary
- private $sk; ///< Skin instance
private $diff; ///< Access to diff engine
function __construct() {
@@ -79,8 +78,6 @@
$this->aReplace = explode("\n", $this->strReplace);
$this->strSummary = $wgRequest->getText( 'wpSummary', '' );
-
- $this->sk = $wgUser->getSkin();
// Replace \n in the match with an actual newline (since a
newline can't
// be typed in, it'll act as the splitter for the next regex)
@@ -209,7 +206,7 @@
Xml::tags( 'div',
array( 'class' => 'mw-summary-preview' ),
wfMsgExt( 'summary-preview', 'parseinline' ) .
- $this->sk->commentBlock(
$this->strSummary )
+ Linker::commentBlock( $this->strSummary
)
) .
Xml::closeElement( 'div' ) . // class=editOptions
@@ -503,7 +500,7 @@
} else {
$wgOut->addWikiMsg(
'masseditregex-num-articles-changed', $iArticleCount );
$wgOut->addHTML(
- $this->sk->makeKnownLinkObj(
+ Linker::makeKnownLinkObj(
SpecialPage::getSafeTitleFor(
'Contributions', $wgUser->getName() ),
wfMsgHtml(
'masseditregex-view-full-summary' )
)
--
To view, visit https://gerrit.wikimedia.org/r/106928
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib66bee38af2164669f2414f3bfa4d7c26eebe694
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassEditRegex
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits