Withoutaname has uploaded a new change for review.
https://gerrit.wikimedia.org/r/146273
Change subject: Add toString() conversion to Action.php
......................................................................
Add toString() conversion to Action.php
Change-Id: Ib9fcae9cc05d42de5751238511ce2f2937d02fbf
---
M includes/actions/Action.php
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/73/146273/1
diff --git a/includes/actions/Action.php b/includes/actions/Action.php
index d4b08b2..606e482 100644
--- a/includes/actions/Action.php
+++ b/includes/actions/Action.php
@@ -55,6 +55,15 @@
protected $fields;
/**
+ * Return a string representation of this action
+ *
+ * @return string Representation of this action
+ */
+ public function __toString() {
+ return $this->getName();
+ }
+
+ /**
* Get the Action subclass which should be used to handle this action,
false if
* the action is disabled, or null if it's not recognised
* @param string $action
--
To view, visit https://gerrit.wikimedia.org/r/146273
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9fcae9cc05d42de5751238511ce2f2937d02fbf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Withoutaname <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits