X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreMedium.php;h=dd3d6bac12c79fa71c930840e9a7f860747b8036;hb=7af7bbe7476996bf60d8d8e48a84687ccd7505df;hp=0cdcf53ee7f83cb5112dea3d5659c20fdf726b87;hpb=b7d10160eb1c088ca3cb2fdf021562dffc61eabf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreMedium.php b/includes/externalstore/ExternalStoreMedium.php index 0cdcf53ee7..dd3d6bac12 100644 --- a/includes/externalstore/ExternalStoreMedium.php +++ b/includes/externalstore/ExternalStoreMedium.php @@ -42,8 +42,6 @@ abstract class ExternalStoreMedium implements LoggerAwareInterface { protected $dbDomain; /** @var bool Whether this was factoried with an explicit DB domain */ protected $isDbDomainExplicit; - /** @var string[] Writable locations */ - protected $writableLocations = []; /** @var LoggerInterface */ protected $logger; @@ -51,7 +49,6 @@ abstract class ExternalStoreMedium implements LoggerAwareInterface { /** * @param array $params Usage context options for this instance: * - domain: the DB domain ID of the wiki the content is for [required] - * - writableLocations: locations that are writable [required] * - logger: LoggerInterface instance [optional] * - isDomainImplicit: whether this was factoried without an explicit DB domain [optional] */ @@ -65,7 +62,6 @@ abstract class ExternalStoreMedium implements LoggerAwareInterface { } $this->logger = $params['logger'] ?? new NullLogger(); - $this->writableLocations = $params['writableLocations'] ?? []; } public function setLogger( LoggerInterface $logger ) { @@ -118,6 +114,6 @@ abstract class ExternalStoreMedium implements LoggerAwareInterface { * @since 1.31 */ public function isReadOnly( $location ) { - return !in_array( $location, $this->writableLocations, true ); + return false; } }