diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /includes/filerepo/ForeignDBViaLBRepo.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'includes/filerepo/ForeignDBViaLBRepo.php')
-rw-r--r-- | includes/filerepo/ForeignDBViaLBRepo.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/includes/filerepo/ForeignDBViaLBRepo.php b/includes/filerepo/ForeignDBViaLBRepo.php index 7951fb13..8153ffb4 100644 --- a/includes/filerepo/ForeignDBViaLBRepo.php +++ b/includes/filerepo/ForeignDBViaLBRepo.php @@ -27,12 +27,23 @@ * @ingroup FileRepo */ class ForeignDBViaLBRepo extends LocalRepo { - var $wiki, $dbName, $tablePrefix; - var $fileFactory = array( 'ForeignDBFile', 'newFromTitle' ); - var $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ); + /** @var string */ + protected $wiki; + + /** @var string */ + protected $dbName; + + /** @var string */ + protected $tablePrefix; + + /** @var array */ + protected $fileFactory = array( 'ForeignDBFile', 'newFromTitle' ); + + /** @var array */ + protected $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ); /** - * @param $info array|null + * @param array|null $info */ function __construct( $info ) { parent::__construct( $info ); @@ -69,6 +80,7 @@ class ForeignDBViaLBRepo extends LocalRepo { if ( $this->hasSharedCache() ) { $args = func_get_args(); array_unshift( $args, $this->wiki ); + return implode( ':', $args ); } else { return false; @@ -78,4 +90,8 @@ class ForeignDBViaLBRepo extends LocalRepo { protected function assertWritableRepo() { throw new MWException( get_class( $this ) . ': write operations are not supported.' ); } + + public function getInfo() { + return FileRepo::getInfo(); + } } |