r84499 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84498‎ | r84499 | r84500 >
Date:23:27, 21 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r84475: what ever posessed me to get rid of this?
Modified paths:
  • /trunk/phase3/includes/Block.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Block.php
@@ -1171,6 +1171,17 @@
11721172 }
11731173
11741174 /**
 1175+ * Get the target and target type for this particular Block. Note that for autoblocks,
 1176+ * this returns the unredacted name; frontend functions need to call $block->getRedactedName()
 1177+ * in this situation.
 1178+ * @return array( User|String, Block::TYPE_ constant )
 1179+ * FIXME: this should be an integral part of the Block member variables
 1180+ */
 1181+ public function getTargetAndType() {
 1182+ return array( $this->getTarget(), $this->getType() );
 1183+ }
 1184+
 1185+ /**
11751186 * Get the target for this particular Block. Note that for autoblocks,
11761187 * this returns the unredacted name; frontend functions need to call $block->getRedactedName()
11771188 * in this situation.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84475Blame hashar for this giant commit; he teased me for making so many smaller o...happy-melon19:12, 21 March 2011

Status & tagging log