Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions dist-persist/wbstack/src/Settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,29 @@
],
];

// https://www.mediawiki.org/wiki/Manual:Footer
// add the link to the report illegal content page
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
if ( $key === 'places' ) {
$newFooterLinks = [];
foreach ( $footerlinks as $k => $v ) {
$newFooterLinks[$k] = $v;
if ( $k === 'about' ) {
$newFooterLinks['report'] = Html::element(
'a',
[
'href' => 'https://wikibase.cloud/complaint',
'target' => '_blank',
'rel' => 'noopener noreferrer'
],
'Report illegal content'
);
}
}
$footerlinks = $newFooterLinks;
}
};

// Custom CSS styling
$styles = [];
if ( version_compare( MW_VERSION, '1.43', '<' ) ) {
Expand Down
23 changes: 23 additions & 0 deletions dist/wbstack/src/Settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,29 @@
],
];

// https://www.mediawiki.org/wiki/Manual:Footer
// add the link to the report illegal content page
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
if ( $key === 'places' ) {
$newFooterLinks = [];
foreach ( $footerlinks as $k => $v ) {
$newFooterLinks[$k] = $v;
if ( $k === 'about' ) {
$newFooterLinks['report'] = Html::element(
'a',
[
'href' => 'https://wikibase.cloud/complaint',
'target' => '_blank',
'rel' => 'noopener noreferrer'
],
'Report illegal content'
);
}
}
$footerlinks = $newFooterLinks;
}
};

// Custom CSS styling
$styles = [];
if ( version_compare( MW_VERSION, '1.43', '<' ) ) {
Expand Down
Loading