diff --git a/dist-persist/wbstack/src/Settings/LocalSettings.php b/dist-persist/wbstack/src/Settings/LocalSettings.php index 799e0fdba..5cde6ccf6 100644 --- a/dist-persist/wbstack/src/Settings/LocalSettings.php +++ b/dist-persist/wbstack/src/Settings/LocalSettings.php @@ -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', '<' ) ) { diff --git a/dist/wbstack/src/Settings/LocalSettings.php b/dist/wbstack/src/Settings/LocalSettings.php index 799e0fdba..5cde6ccf6 100644 --- a/dist/wbstack/src/Settings/LocalSettings.php +++ b/dist/wbstack/src/Settings/LocalSettings.php @@ -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', '<' ) ) {