API: Handle "special" options in action=options
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 10 Oct 2013 14:54:08 +0000 (10:54 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 10 Oct 2013 15:02:04 +0000 (11:02 -0400)
commitb393835bda6c6359dee4dfa5004d24319af262a3
treed3787ce175dbf9e38eba9358f4a7f1752ac7138a
parent7d1cd6c376c4ae941a8f654815daad75f0146b2e
API: Handle "special" options in action=options

There are certain preferences, such as realname and emailaddress, that
are handled specially in Special:Preferences and are not accessible by
User::getOptions or User::setOptions. But action=options was allowing
a 'dummy' version to be set in User::setOptions.

Change-Id: I4c1b3d8e1eae9520228d7b6da9c41ada80f7c387
includes/Preferences.php
includes/User.php
includes/api/ApiOptions.php
tests/phpunit/includes/api/ApiOptionsTest.php