X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fblock%2FSystemBlock.php;h=494a7b9ba22728e4d7d2d18ef35d9f24127df9d8;hb=4051e45504a0da71718bb46f51b0dab1ea65c7fe;hp=029e0b87417ad22120661c509d9abe53802c775e;hpb=9c23d8bbed3746251b2f7b27697cb004ef6ceb43;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/block/SystemBlock.php b/includes/block/SystemBlock.php index 029e0b8741..494a7b9ba2 100644 --- a/includes/block/SystemBlock.php +++ b/includes/block/SystemBlock.php @@ -39,11 +39,11 @@ class SystemBlock extends AbstractBlock { /** * Create a new block with specified parameters on a user, IP or IP range. * - * @param array $options Parameters of the block: - * systemBlock string Indicate that this block is automatically - * created by MediaWiki rather than being stored - * in the database. Value is a string to return - * from self::getSystemBlockType(). + * @param array $options Parameters of the block, with options supported by + * `AbstractBlock::__construct`, and also: + * - systemBlock: (string) Indicate that this block is automatically created by + * MediaWiki rather than being stored in the database. Value is a string to + * return from self::getSystemBlockType(). */ public function __construct( array $options = [] ) { parent::__construct( $options ); @@ -76,7 +76,8 @@ class SystemBlock extends AbstractBlock { */ public function getPermissionsError( IContextSource $context ) { $params = $this->getBlockErrorParams( $context ); - // TODO: Clean up error messages params so we don't have to do this + + // TODO: Clean up error messages params so we don't have to do this (T227174) $params[ 4 ] = $this->getSystemBlockType(); $msg = 'systemblockedtext';