Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSU
tweeki
Commits
28191bb3
Commit
28191bb3
authored
Oct 25, 2020
by
thaider
Browse files
use HtmlArmor for SkinEditSectionLinks, fixes #154
parent
7654c9f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/Hooks.php
View file @
28191bb3
...
...
@@ -874,7 +874,11 @@ class TweekiHooks {
$icon
=
wfMessage
(
'tweeki-editsection-icon'
)
->
inLanguage
(
$lang
)
->
parse
();
$text
=
wfMessage
(
'tweeki-editsection-text'
)
->
inLanguage
(
$lang
)
->
parse
();
$class
=
wfMessage
(
'tweeki-editsection-class'
)
->
inLanguage
(
$lang
)
->
parse
();
$text
=
$icon
.
(
(
$icon
!=
''
)
?
' '
:
''
)
.
$text
;
if
(
version_compare
(
MW_VERSION
,
'1.34'
,
'>='
)
)
{
$text
=
new
HtmlArmor
(
$icon
.
(
(
$icon
!=
''
)
?
' '
:
''
)
.
$text
);
}
else
{
$text
=
$icon
.
(
(
$icon
!=
''
)
?
' '
:
''
)
.
$text
;
}
$links
[
'editsection'
][
'text'
]
=
$text
;
$links
[
'editsection'
][
'attribs'
][
'class'
]
=
$class
;
...
...
mediawiki/content.css
View file @
28191bb3
...
...
@@ -144,3 +144,26 @@ div.tright {
div
.tleft
{
margin
:
.5em
1.4em
1.3em
0
;
}
/* Display editsection links smaller and next to headings */
.mw-editsection
,
.mw-editsection-like
{
font-size
:
small
;
font-weight
:
normal
;
margin-left
:
1em
;
vertical-align
:
baseline
;
/* Reset line-height; headings tend to have it set to larger values */
line-height
:
1em
;
}
/* Correct directionality when page dir is different from site/user dir */
/* @noflip */
.mw-content-ltr
.mw-editsection
,
.mw-content-rtl
.mw-content-ltr
.mw-editsection
{
margin-left
:
1em
;
}
/* @noflip */
.mw-content-rtl
.mw-editsection
,
.mw-content-ltr
.mw-content-rtl
.mw-editsection
{
margin-right
:
1em
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment