Wikinaut has uploaded a new change for review.
https://gerrit.wikimedia.org/r/53042
Change subject: (bug 45967) added missing User object method deleteOption()
......................................................................
(bug 45967) added missing User object method deleteOption()
Change-Id: Ic9acf619500eb80918e014193220b5c8e6f8380a
---
M includes/User.php
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/42/53042/1
diff --git a/includes/User.php b/includes/User.php
index ac4122a..4a29d65 100644
--- a/includes/User.php
+++ b/includes/User.php
@@ -2313,6 +2313,17 @@
}
/**
+ * Delete the given option for a user.
+ *
+ * @param $oname String The option to delete
+ */
+ public function deleteOption( $oname ) {
+ $this->loadOptions();
+
+ unset( $this->mOptions[$oname] );
+ }
+
+ /**
* Return a list of the types of user options currently returned by
* User::getOptionKinds().
*
--
To view, visit https://gerrit.wikimedia.org/r/53042
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic9acf619500eb80918e014193220b5c8e6f8380a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Wikinaut <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits