Hi,

> // Add a TOS to the footer
> //
> https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateOutputPageBeforeExec
> global $wgHooks;
> $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
> function lfTOSLink( &$skin, &$template ) {
>   // define that msg MediaWiki:Termsofservice shall link to
> MediaWiki:Termsofservicepage Title
>   $template->set( 'termsofservice', $skin->footerLink( 'termsofservice',
> 'termsofservicepage' ) );
>   $template->data['footerlinks']['places'][] = 'termsofservice';
>   return true;
> }
This worked for me on 1.27. In the *lfTOSLink* function in the code
here[0], there is no *&* for the variable *skin* as in your above code.
Perhaps try using the same variable names to see if it works and then
change to whatever you wish.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to