Hoo man has submitted this change and it was merged.
Change subject: Adjust doEditLink() after changes in core
......................................................................
Adjust doEditLink() after changes in core
r74725 (yeah, seriously), I6a6c12a9, Id27555c6.
Change-Id: I7dbe5e9235b9d9ba35492a5a49a4f3793bc0e48e
---
M WikilogItemPager.php
1 file changed, 14 insertions(+), 6 deletions(-)
Approvals:
Hoo man: Verified; Looks good to me, approved
diff --git a/WikilogItemPager.php b/WikilogItemPager.php
index e97ba73..bee99fc 100644
--- a/WikilogItemPager.php
+++ b/WikilogItemPager.php
@@ -235,21 +235,26 @@
* @return string HTML fragment.
*/
private function doEditLink( $title, $tooltip = null ) {
+ $lang = wfGetLangObj();
+
$skin = $this->getSkin();
$attribs = array();
if ( !is_null( $tooltip ) ) {
$attribs['title'] = wfMsg( 'wikilog-edit-hint',
$tooltip );
}
- $link = $skin->link( $title, wfMsg( 'wikilog-edit-lc' ),
+ $link = Linker::link( $title, wfMsg( 'wikilog-edit-lc' ),
$attribs,
array( 'action' => 'edit' ),
array( 'noclasses', 'known' )
);
- $result = wfMsgHtml ( 'editsection-brackets', $link );
- $result = "<span class=\"editsection\">$result</span>";
+ $result = '<span class="mw-editsection">'
+ . '<span class="mw-editsection-bracket">[</span>'
+ . $link
+ . '<span class="mw-editsection-bracket">]</span>'
+ . '</span>';
- wfRunHooks( 'DoEditSectionLink', array( $skin, $title, "",
$tooltip, &$result ) );
+ wfRunHooks( 'DoEditSectionLink', array( $skin, $title, "",
$tooltip, &$result, $lang ) );
return $result;
}
}
@@ -573,13 +578,16 @@
if ( !is_null( $tooltip ) ) {
$attribs['title'] = wfMsg( 'wikilog-edit-hint',
$tooltip );
}
- $link = $skin->link( $title, wfMsg( 'wikilog-edit-lc' ),
+ $link = Linker::link( $title, wfMsg( 'wikilog-edit-lc' ),
$attribs,
array( 'action' => 'edit' ),
array( 'noclasses', 'known' )
);
- $result = wfMsgHtml ( 'editsection-brackets', $link );
+ $result = '<span class="mw-editsection-bracket">[</span>'
+ . $link
+ . '<span class="mw-editsection-bracket">]</span>';
+
return $result;
}
}
--
To view, visit https://gerrit.wikimedia.org/r/64368
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7dbe5e9235b9d9ba35492a5a49a4f3793bc0e48e
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Wikilog
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Matmarex <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits