Last modified: 2012-04-12 13:53:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26785, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24785 - UserToggles hook no longer work in 1.16
UserToggles hook no longer work in 1.16
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.16.x
All All
: Lowest major (vote)
: ---
Assigned To: Andrew Garrett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-13 15:23 UTC by Dan Barrett
Modified: 2012-04-12 13:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Barrett 2010-08-13 15:23:10 UTC
If an extension uses the UserToggles hook to add a checkbox to the "Misc" tab in preferences, this functionality no longer works in MediaWiki 1.16.

If this hook is now deprecated, this ticket should update the docs at http://www.mediawiki.org/wiki/Manual:Hooks/UserToggles and in /docs/HOOKS.

Example:

function wfToggle($extraToggles) {
  global $wgMessageCache;
  $extraToggles[] = 'foo';
  $wgMessageCache->addMessage('tog-foo', 'my checkbox text');
  return true;
}

Note: I am fairly sure that the deprecated $wgMessageCache->addMessage() call is NOT the problem.
Comment 1 Dan Barrett 2010-08-13 15:24:26 UTC
Confirmed that the UserToggles hook is still in the 1.16 code in /includes/User.php.
Comment 2 Andrew Garrett 2010-08-14 08:47:47 UTC
This hook is no longer functional. I have removed some vestiges of it in User.php in r71062. and have marked the hook page appropriately.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links