Topic on Manual talk:Hooks/SkinAddFooterLinks

How would I go about adding a footer link in the Vector skin?

2
Shaen4Ko (talkcontribs)

Adding the current example code to LocalSettings.php yields errors in Mediawiki 1.35.

Shaen4Ko (talkcontribs)

To make it work in LocalSettings.php you have to use $wgHooks:

$wgHooks['SkinAddFooterLinks'][] = function( $skin, $key, &$footerlinks ) {
       if ( $key === 'places' ) {
               $footerlinks['test1'] = '<A href=#>Test Link 1</a>';
               $footerlinks['test2'] = '<A href=#>Test Link 2</a>';
       }
};