X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=bce3005c673bd74a80d1ef78d9728645ae9304c4;hb=25d765c4735346f5207037c6f939709509013601;hp=f49ef88c5cd45deeef79edda6d26d7b9eb4cabc5;hpb=d1f572501bbef491f05237712938347ca6552fd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index f49ef88c5c..bce3005c67 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -21,6 +21,9 @@ * @ingroup FileRepo */ +use Wikimedia\Rdbms\Database; +use Wikimedia\Rdbms\IDatabase; + /** * A foreign repository with an accessible MediaWiki database * @@ -138,7 +141,7 @@ class ForeignDBRepo extends LocalRepo { } protected function assertWritableRepo() { - throw new MWException( get_class( $this ) . ': write operations are not supported.' ); + throw new MWException( static::class . ': write operations are not supported.' ); } /**