> Daniel Barrett wrote:
>
> In 1.16, custom preferences added by third-party extensions aren't getting
> displayed on our wiki. They all use the "UserToggles" hook and a function
> like this:
>
> function wfToggle($extraToggles) {
> global $wgMessageCache;
> $extraToggles[] = 'foo';
> $wgMessageCache->addMessage('tog-foo', 'my checkbox text');
> return true;
> }
>
> They used to show up under the Misc tab, but now they don't. Is this no
> longer the way to add toggles?
> http://www.mediawiki.org/wiki/Manual:Hooks/UserToggles says nothing about it.
>
> Thanks,
> DanB
The problem is $wgMessageCache->addMessage(). That method is deprecated, and
although it still exists it no longer seems to work.
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l