Skip to content

Commit 171b450

Browse files
authored
Add report link to mediawiki footer (#488)
Bug: T397906
1 parent 993af34 commit 171b450

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

dist-persist/wbstack/src/Settings/LocalSettings.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,20 @@
218218
],
219219
];
220220

221+
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
222+
if ( $key === 'places' ) {
223+
$footerlinks['report'] = Html::element(
224+
'a',
225+
[
226+
'href' => 'https://wikibase.cloud/complaint',
227+
'target' => '_blank',
228+
'rel' => 'noopener noreferrer'
229+
],
230+
'Report illegal content'
231+
);
232+
}
233+
};
234+
221235
// Custom CSS styling
222236
$styles = [];
223237
if ( version_compare( MW_VERSION, '1.43', '<' ) ) {

dist/wbstack/src/Settings/LocalSettings.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,20 @@
218218
],
219219
];
220220

221+
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
222+
if ( $key === 'places' ) {
223+
$footerlinks['report'] = Html::element(
224+
'a',
225+
[
226+
'href' => 'https://wikibase.cloud/complaint',
227+
'target' => '_blank',
228+
'rel' => 'noopener noreferrer'
229+
],
230+
'Report illegal content'
231+
);
232+
}
233+
};
234+
221235
// Custom CSS styling
222236
$styles = [];
223237
if ( version_compare( MW_VERSION, '1.43', '<' ) ) {

0 commit comments

Comments
 (0)